
        /* Reset and base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #0f0f23;
            min-height: 100vh;
            display: flex;
            color: #e4e4e7;
        }

        /* Layout structure */
        .app-container {
            display: flex;
            width: 100%;
            min-height: 100vh;
        }

        /* Left sidebar */
        .sidebar {
            width: 280px;
            background: #1c1c2e;
            border-right: 1px solid #2d2d44;
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            max-height: 100vh;
            flex-shrink: 0;
            overflow: hidden;
            z-index: 100;
        }

        .sidebar-search {
            padding: 20px 16px 16px;
            border-bottom: 1px solid #2d2d44;
        }

        .search-button {
            width: 100%;
            background: #2d2d44;
            border: 1px solid #3d3d5c;
            border-radius: 8px;
            padding: 12px 16px;
            color: #a1a1aa;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .search-button:hover {
            background: #3d3d5c;
            border-color: #4d4d6f;
            color: #e4e4e7;
        }

        .search-icon {
            width: 16px;
            height: 16px;
            opacity: 0.7;
        }

        /* Navigation */
        .navigation {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            min-height: 0;
        }

        /* Custom scrollbar for navigation */
        .navigation::-webkit-scrollbar {
            width: 6px;
        }

        .navigation::-webkit-scrollbar-track {
            background: #1c1c2e;
        }

        .navigation::-webkit-scrollbar-thumb {
            background: #3d3d5c;
            border-radius: 3px;
        }

        .navigation::-webkit-scrollbar-thumb:hover {
            background: #4d4d6f;
        }

        .nav-back {
            display: none;
            padding: 16px;
            color: #a1a1aa;
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            align-items: center;
            gap: 8px;
            transition: color 0.2s;
        }

        .nav-back:hover {
            color: #e4e4e7;
        }

        .nav-back.visible {
            display: flex;
        }

        .nav-list {
            list-style: none;
            padding: 0;
        }

        .nav-item {
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateX(-15px);
            animation: slideInItem 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .nav-item:hover {
            background: #2d2d44;
            transform: translateX(0) scale(1.02);
        }

        @keyframes slideInItem {
            from {
                opacity: 0;
                transform: translateX(-15px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .nav-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            color: #e4e4e7;
            text-decoration: none;
            font-size: 14px;
            font-weight: 400;
        }

        .nav-link:hover {
            color: #f4f4f5;
        }

        .chevron-icon {
            width: 12px;
            height: 12px;
            transform: rotate(0deg);
            transition: transform 0.2s;
        }

        .nav-item.expanded .chevron-icon {
            transform: rotate(90deg);
        }

        /* Bottom section */
        .sidebar-bottom {
            padding: 16px;
            border-top: 1px solid #2d2d44;
            flex-shrink: 0;
            background: #1c1c2e;
        }

        .request-calendar {
            width: 100%;
            background: #2d2d44;
            border: 1px solid #3d3d5c;
            border-radius: 8px;
            padding: 12px;
            color: #e4e4e7;
            font-size: 14px;
            cursor: pointer;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .request-calendar:hover {
            background: #3d3d5c;
        }

        .bottom-text {
            color: #71717a;
            font-size: 12px;
            line-height: 1.4;
            margin-bottom: 12px;
        }

        .submit-calendar {
            color: #60a5fa;
            text-decoration: none;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .submit-calendar:hover {
            color: #93c5fd;
        }

        /* Main content */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            position: relative;
            margin-left: 280px;
            opacity: 0;
            animation: fadeInContent 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        @keyframes fadeInContent {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Fixtures Module */
        .fixtures-module {
            background: #18181b;
            border-radius: 12px;
            margin: 20px;
            padding: 0;
            border: 1px solid #27272a;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            width:100%;
            max-width:640px;
        }

        .fixtures-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid #27272a;
            background: #1a1a1e;
            border-radius: 12px 12px 0 0;
        }

        .fixtures-date-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .fixtures-date {
            font-size: 18px;
            font-weight: 600;
            color: #f4f4f5;
            margin: 0;
        }

        .fixtures-time {
            font-size: 14px;
            font-weight: 400;
            color: #a1a1aa;
            margin: 0;
        }

        .date-nav-btn {
            background: transparent;
            border: none;
            color: #a1a1aa;
            cursor: pointer;
            padding: 8px;
            border-radius: 6px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .date-nav-btn:hover {
            background: #27272a;
            color: #f4f4f5;
        }

        .fixtures-filters {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px;
            border-bottom: 1px solid #27272a;
            background: #1a1a1e;
            gap: 16px;
        }

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

        .filter-btn {
            background: transparent;
            border: 1px solid #27272a;
            color: #a1a1aa;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .filter-btn:hover {
            background: #27272a;
            color: #f4f4f5;
        }

        .filter-btn.active {
            background: #3b82f6;
            border-color: #3b82f6;
            color: white;
        }

        .filter-search {
            display: flex;
            align-items: center;
            position: relative;
            flex: 1;
            max-width: 200px;
        }

        .search-input {
            background: #27272a;
            border: 1px solid #3f3f46;
            color: #f4f4f5;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 14px;
            width: 100%;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .search-input:focus {
            border-color: #3b82f6;
        }

        .search-input::placeholder {
            color: #71717a;
        }

        .clear-search {
            position: absolute;
            right: 8px;
            background: transparent;
            border: none;
            color: #71717a;
            cursor: pointer;
            font-size: 16px;
            padding: 0;
            width: 20px;
            height: 20px;
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .clear-search:hover {
            background: #3f3f46;
            color: #f4f4f5;
        }

        .clear-search.show {
            display: flex;
        }

        .fixtures-content {
            padding: 0;
        }

        .no-matches {
            padding: 40px 20px;
            text-align: center;
            color: #71717a;
            font-style: italic;
        }

        .league-fixtures {
            border-bottom: 1px solid #27272a;
        }

        .league-fixtures:last-child {
            border-bottom: none;
        }

        .league-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 20px;
            background: #1f1f23;
            border-bottom: 1px solid #27272a;
            font-weight: 600;
            color: #e4e4e7;
            font-size: 14px;
        }

        .league-flag {
            width: 20px;
            height: 14px;
            border-radius: 2px;
            object-fit: cover;
        }

        .league-name {
            flex: 1;
        }

        .matches-list {
            padding: 0;
        }

        .match-link {
            display: block;
            color: inherit;
            text-decoration: none;
            transition: transform 0.2s ease;
        }

        .match-link:hover {
            transform: translateX(2px);
        }

        .match-item {
            padding: 12px 20px;
            border-bottom: 1px solid #27272a;
            transition: background-color 0.2s ease;
        }

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

        .match-item:hover {
            background: #1f1f23;
        }

        .match-item.live {
            background: rgba(34, 197, 94, 0.1);
            border-left: 3px solid #22c55e;
        }

        .match-item.finished {
            opacity: 0.8;
        }

        .teams {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .team {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            min-width: 0;
        }

        .home-team {
            justify-content: flex-end;
            text-align: right;
        }

        .away-team {
            justify-content: flex-start;
            text-align: left;
        }

        .team-logo {
            width: 20px;
            height: 20px;
            border-radius: 2px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .team-name {
            font-size: 14px;
            color: #e4e4e7;
            font-weight: 500;
        }

        .match-status {
            background: #27272a;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            color: #f4f4f5;
            min-width: 60px;
            text-align: center;
            flex-shrink: 0;
        }

        .match-item.live .match-status {
            background: #22c55e;
            color: #000;
            animation: pulse 2s infinite;
        }

        .match-item.finished .match-status {
            background: #3f3f46;
            color: #a1a1aa;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .fixtures-module {
                margin: 10px;
                border-radius: 8px;
            }

            .fixtures-header {
                padding: 12px 16px;
            }

            .fixtures-filters {
                flex-direction: column;
                gap: 12px;
                align-items: stretch;
                padding: 12px 16px;
            }

            .filter-buttons {
                justify-content: center;
            }

            .filter-search {
                max-width: none;
            }

            .fixtures-date {
                font-size: 16px;
            }

            .fixtures-time {
                font-size: 12px;
            }

            .league-header,
            .match-item {
                padding: 10px 16px;
            }

            .team-name {
                font-size: 13px;
            }

            .match-status {
                padding: 4px 8px;
                font-size: 12px;
                min-width: 50px;
            }
        }

        /* Team details section */
        .team-details {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 40px;
            color: #e4e4e7;
            pointer-events: none;
            height: 0;
            overflow: hidden;
        }

        .team-details.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
            height: auto;
            overflow: visible;
        }

        .team-header {
            display: flex;
            gap: 24px;
            margin-bottom: 0px;
        }

        @media (max-width: 768px) {
            .team-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }
            
            .team-info {
                width: 100%;
            }
            
            .team-info h1 {
                display: flex;
                align-items: center;
                gap: 12px;
                flex-direction: row;
            }
            
            .team-logo {
                width: 40px;
                height: 40px;
                font-size: 20px;
                flex-shrink: 0;
                order: -1;
            }
        }
        .teams-container .team-logo {display:none!important;}
        .team-logo {
            width: 100px;
            height: 100px;
            border-radius: 12px;
            background: #2d2d44;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
        }

        .team-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 12px;
        }

        .team-info h1 {
            font-size: 25px;
            font-weight: 700;
            margin-bottom: 1px;
        }

        .team-info .team-subtitle {
            font-size: 16px;
            color: #71717a;
            margin-bottom: 5px;
        }

        .team-leagues {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 25px;  
            align-items: flex-start;
        }

        .team-all-sync-container {
            position: relative;
            display: inline-block;
        }

        .team-all-sync-badge {
  background: white;
  border: none;
  border-radius: 50px;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 500;
  color: black;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
}

        .team-all-sync-badge:hover {
            background: #0056b3;
            border-color: #0056b3;
            color:white;
        }

        .team-all-sync-badge:active {
            background: #004085;
            border-color: #004085;
        }

        .sync-separator {
    font-size: 14px;
    color: rgba(255, 255, 255, .4);
    margin: 10px 0 1px 0;
    text-align: left;
    position: relative;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid;
    padding: 5px 0;
    border-top: 1px solid;
    width: 100%;
}

        .sync-separator:before {
            display: none;
        }

        .sync-separator span {
            background: transparent;
            padding: 0;
            position: relative;
            z-index: 2;
        }

        .league-sync-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: flex-start;
            margin-top: 0px;
        }

        /* Accordion styles for sync more options */
        .sync-buttons-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 0px;
        }
        
        .sync-more-options {
            margin-top: 0px;
        }

        .sync-more-toggle {
            background: none;
            border: none;
            border-radius: 50px;
            padding: 8px 15px;
            font-size: 13px;
            font-weight: 500;
            color: white;
            cursor: pointer;
            transition: all 0.15s ease-in-out;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            text-align: center;
            vertical-align: middle;
            line-height: 1.5;
            opacity: 0.8;
            white-space: nowrap;
        }

        .sync-more-toggle:hover {
            background: #0056b3;
            border-color: #0056b3;
            color: white;
            opacity: 1;
        }

        .sync-chevron {
            font-size: 11px;
            transition: transform 0.2s ease;
        }

        .sync-chevron.rotated {
            transform: rotate(180deg);
        }

        .sync-more-options .league-sync-options {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out, opacity 0.2s ease;
            opacity: 0;
            margin-top: 8px;
            pointer-events: none;
        }

        .sync-more-options .league-sync-options.expanded {
            max-height: 200px;
            opacity: 1;
            overflow: visible;
            pointer-events: auto;
        }

        .league-sync-actions {
            margin-top: 16px;
            display: flex;
            justify-content: center;
        }

        .league-all-sync-container {
            position: relative;
            display: inline-block;
        }

        .league-all-sync-badge {
            background: #059669;
            border: 1px solid #10b981;
            border-radius: 20px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 500;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .league-all-sync-badge:hover {
            background: #10b981;
            border-color: #34d399;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
        }

        /* Calendar Preview Styles */
        .calendar-event-item {
            transition: all 0.2s ease;
        }
        
        .calendar-event-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }
        
        .calendar-event-item.today {
            position: relative;
            overflow: hidden;
        }
        
        .calendar-event-item.today::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: #3b82f6;
        }

        /* Scrollbar styling for calendar preview */
        #calendar-container *::-webkit-scrollbar {
            width: 6px;
        }
        
        #calendar-container *::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }
        
        #calendar-container *::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
        }
        
        #calendar-container *::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }



        .league-badge:hover {
            background: #6c757d;
            color: #ffffff;
        }

        .league-badge:active {
            background: #5a6268;
            border-color: #5a6268;
        }

        .league-badge.active {
            background: #007bff;
            border-color: #007bff;
            color: #ffffff;
        }

        .team-stats {
            display: none; /* Hidden - removing the stat cards */
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 20px;
            backdrop-filter: blur(10px);
        }

        .stat-card h3 {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-card .stat-value {
            font-size: 24px;
            font-weight: 600;
            color: white;
        }

        .upcoming-matches {
            margin-top: 20px;
        }

        .upcoming-matches h3 {
            font-size: 18px;
            margin-bottom: 16px;
            color: #a1a1aa;
        }

        .matches-calendar {
            background: #1c1c2e;
            border: 1px solid #2d2d44;
            border-radius: 12px;
            overflow: hidden;
        }

        .calendar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid #2d2d44;
            background: #252540;
        }

        .calendar-month {
            font-size: 16px;
            font-weight: 600;
            color: #e4e4e7;
            flex: 1;
            text-align: center;
        }

        .calendar-nav-btn {
            background: none;
            border: none;
            color: #71717a;
            cursor: pointer;
            padding: 8px;
            border-radius: 6px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
        }

        .calendar-nav-btn:hover {
            color: #e4e4e7;
            background: rgba(255, 255, 255, 0.1);
        }

        .calendar-nav-btn:disabled {
            color: #3f3f46;
            cursor: not-allowed;
        }

        .calendar-nav-btn:disabled:hover {
            background: none;
        }

        .calendar-nav {
            display: flex;
            gap: 8px;
        }

        .calendar-nav button {
            background: none;
            border: none;
            color: #71717a;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: color 0.2s;
        }

        .calendar-nav button:hover {
            color: #e4e4e7;
        }

        .matches-table {
            width: 100%;
            opacity: 0;
            transform: translateY(15px);
            animation: fadeInTable 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        @keyframes fadeInTable {
            from {
                opacity: 0;
                transform: translateY(15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .matches-table-header {
            display: grid;
            grid-template-columns: 80px 80px 1fr 150px;
            padding: 12px 20px;
            border-bottom: 1px solid #2d2d44;
            background: #252540;
            font-size: 12px;
            font-weight: 600;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .match-row {
            display: grid;
            grid-template-columns: 80px 80px 1fr 150px;
            padding: 16px 20px;
            border-bottom: 1px solid #2d2d44;
            transition: background 0.2s;
            align-items: center;
        }

        .match-row:hover {
            background: #252540;
        }

        .match-row:last-child {
            border-bottom: none;
        }

        .match-row.past-match {
            opacity: 1;
            background: rgba(45, 45, 68, 0.3);
        }

        .match-row.past-match:hover {
            background: rgba(37, 37, 64, 0.5);
        }

        .match-row.past-match .match-date,
        .match-row.past-match .match-time {
            color: #71717a;
        }

        .match-row.past-match .match-event {
            color: #a1a1aa;
        }

        .match-status {
            font-size: 12px;
            color: #71717a;
            font-style: italic;
            margin-top: 2px;
        }

        .match-status.score {
            font-style: normal;
            font-weight: 600;
            color: #e4e4e7;
            background: #1e293b;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid #334155;
        }

        .score-inline {
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 4px;
            margin: 0 4px;
            background: #374151;
            color: #f3f4f6;
        }

        /* Win/Loss/Draw styling */
        .match-row.win {
            border-left: 3px solid #10b981;
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
        }

        .match-row.loss {
            border-left: 3px solid #ef4444;
            background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
        }

        .match-row.draw {
            border-left: 3px solid #f59e0b;
            background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
        }

        .match-row.win .score-inline {
            background: #10b981;
            color: #ffffff;
        }

        .match-row.loss .score-inline {
            background: #ef4444;
            color: #ffffff;
        }

        .match-row.draw .score-inline {
            background: #f59e0b;
            color: #ffffff;
        }

        .match-date {
            font-size: 14px;
            color: #e4e4e7;
            font-weight: 500;
        }

        .match-time {
            font-size: 14px;
            color: #a1a1aa;
        }

        .match-event {
            font-size: 14px;
            color: #e4e4e7;
        }

        .match-event .vs {
            color: #71717a;
            margin: 0 8px;
        }

        .match-league {
            font-size: 12px;
            color: #a1a1aa;
            background: #2d2d44;
            padding: 4px 8px;
            border-radius: 4px;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .no-matches {
            padding: 40px 20px;
            text-align: center;
            color: #71717a;
            font-style: italic;
        }

        .team-outlook {
            margin-top: 32px;
        }

        .team-outlook-content {
            background: #1c1c2e;
            border: 1px solid #2d2d44;
            border-radius: 12px;
            padding: 24px;
            color: #e4e4e7;
            line-height: 1.6;
        }

        .team-outlook-content h1,
        .team-outlook-content h2,
        .team-outlook-content h3,
        .team-outlook-content h4,
        .team-outlook-content h5,
        .team-outlook-content h6 {
            color: #ffffff;
            margin-bottom: 16px;
            margin-top: 24px;
        }

        .team-outlook-content h1:first-child,
        .team-outlook-content h2:first-child,
        .team-outlook-content h3:first-child,
        .team-outlook-content h4:first-child,
        .team-outlook-content h5:first-child,
        .team-outlook-content h6:first-child {
            margin-top: 0;
        }

        .team-outlook-content p {
            margin-bottom: 16px;
            color: #e4e4e7;
        }

        .team-outlook-content p:last-child {
            margin-bottom: 0;
        }

        .team-outlook-content strong {
            color: #ffffff;
            font-weight: 600;
        }

        .team-outlook-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: #252540;
            border: 1px solid #2d2d44;
            border-radius: 8px;
            overflow: hidden;
        }

        .team-outlook-content table th,
        .team-outlook-content table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #2d2d44;
            color: #e4e4e7;
        }

        .team-outlook-content table th {
            background: #2d2d44;
            color: #ffffff;
            font-weight: 600;
        }

        .team-outlook-content table tbody tr:last-child td {
            border-bottom: none;
        }

        .team-outlook-content table tbody tr:hover {
            background: #2a2a3e;
        }

        .team-outlook-content sup {
            color: #a1a1aa;
            font-size: 0.75em;
        }

        /* Standings Tabs Styles */
        .standings-tabs-container {
            margin: 24px 0;
        }

        .standings-tabs-nav {
            display: flex;
            background: #1e1e30;
            border-radius: 8px 8px 0 0;
            padding: 4px;
            margin-bottom: 0;
            overflow-x: auto;
            gap: 4px;
        }

        .standings-tab-btn {
            flex: 1;
            min-width: fit-content;
            padding: 12px 16px;
            background: transparent;
            color: #a1a1aa;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .standings-tab-btn:hover {
            background: #2a2a3e;
            color: #e4e4e7;
        }

        .standings-tab-btn.active {
            background: #3b82f6;
            color: white;
            font-weight: 600;
        }

        .standings-tabs-content {
            background: #1a1a2e;
            border-radius: 0 0 8px 8px;
            min-height: 400px;
        }

        .standings-tab-content {
            display: none;
            padding: 0;
        }

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

        .standings-tab-content .standings-section {
            margin: 0;
        }

        .standings-tab-content .standings-section h2 {
            display: none; /* Hide individual titles since tab shows the league name */
        }

        @media (max-width: 768px) {
            .standings-tabs-nav {
                padding: 2px;
                gap: 2px;
            }
            
            .standings-tab-btn {
                padding: 10px 12px;
                font-size: 12px;
            }
        }

        .outlook-timestamp {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid #3f3f46;
            font-size: 0.875em;
            color: #a1a1aa;
            font-style: italic;
            text-align: right;
        }

        .team-loading {
            display: none;
            padding: 40px;
            text-align: center;
            color: #71717a;
        }

        .team-loading.visible {
            display: block;
        }

        .header {
            padding: 20px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #1c1c2e;
            border-bottom: 1px solid #2d2d44;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .logo {
            color: #e4e4e7;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: opacity 0.2s ease;
        }

        .logo:hover {
            opacity: 0.8;
        }

        .logo-image {
            height: 32px;
            width: auto;
            display: block;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
            line-height: 1;
        }

        .logo-tagline {
            font-size: 12px;
            font-weight: 400;
            color: #a1a1aa;
            margin-top: 2px;
        }

        /* Header Button Icons */
        .calendar-icon, .signout-icon {
            flex-shrink: 0;
            margin-right: 6px;
        }

        .hamburger-menu {
            display: none;
            flex-direction: column;
            justify-content: center;
            width: 24px;
            height: 24px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            gap: 4px;
        }

        .hamburger-menu span {
            width: 20px;
            height: 2px;
            background: #e4e4e7;
            border-radius: 1px;
            transition: all 0.3s ease;
            transform-origin: center;
        }

        .hamburger-menu.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger-menu.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger-menu.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

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

        .user-menu {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-info {
            font-size: 14px;
            background: #2d2d44 !important;
            cursor: default !important;
        }

        .user-info:hover {
            background: #2d2d44 !important;
            color: #e4e4e7 !important;
        }

        .header-button {
            background: #2d2d44;
            border: 1px solid #3d3d5c;
            border-radius: 6px;
            padding: 8px 16px;
            color: #e4e4e7;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .header-button:hover {
            background: #3d3d5c;
            color: #f4f4f5;
        }

        /* Calendar Control Styles */
        .calendar-control {
            position: relative;
            display: inline-block;
        }

        .calendar-button {
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .calendar-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            box-shadow: 
                0 16px 32px rgba(0, 0, 0, 0.12),
                0 4px 8px rgba(0, 0, 0, 0.08);
            min-width: 280px;
            max-width: 320px;
            z-index: 1000;
            margin-top: 8px;
            backdrop-filter: blur(20px);
            display: none;
            transform: translateY(-8px) scale(0.98);
            opacity: 0;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }
        
        @media (max-width: 768px) {
            .calendar-dropdown {
                position: fixed;
                top: 80px;
                bottom: auto;
                right: 16px;
                left: 16px;
                min-width: auto;
                max-width: none;
                width: calc(100vw - 32px);
            }
        }
        
        .calendar-dropdown.show {
            display: block;
            transform: translateY(0) scale(1);
            opacity: 1;
            pointer-events: auto;
        }

        .calendar-list {
            max-height: 280px;
            overflow-y: auto;
            padding: 8px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        
        .calendar-list::-webkit-scrollbar {
            display: none;
        }

        .calendar-user-header {
            font-size: 11px;
            color: #8b92a9;
            padding: 8px 12px 4px 12px;
            border-bottom: 1px solid #e8e9ef;
            margin-bottom: 8px;
            background: rgba(139, 146, 169, 0.05);
        }

        .calendar-user-header .user-label {
            font-weight: 500;
            margin-bottom: 2px;
        }

        .calendar-user-header .user-email {
            font-family: monospace;
            color: #6c7293;
        }

        .calendar-item {
            display: flex;
            flex-direction: column;
            padding: 12px;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
            background: white;
            margin-bottom: 4px;
            border-radius: 8px;
            border: 1px solid transparent;
        }

        .calendar-item:hover {
            background: #f8fafc;
            border-color: #e2e8f0;
        }

        .calendar-item:last-child {
            margin-bottom: 0;
        }

        .calendar-info {
            flex: 1;
            margin-bottom: 0;
        }

        .calendar-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
            gap: 8px;
        }

        .calendar-name {
            font-weight: 600;
            font-size: 14px;
            color: #1f2937;
            margin-bottom: 4px;
            letter-spacing: -0.025em;
            line-height: 1.3;
        }

        .calendar-stats {
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 0;
            font-weight: 400;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .calendar-stats .stat-number {
            color: #3b82f6;
            font-weight: 500;
        }

        .calendar-stats i {
            font-size: 10px;
            margin-right: 4px;
        }

        .calendar-actions {
            display: flex;
            flex-direction: row;
            gap: 4px;
            margin-left: 0;
            align-items: center;
            flex-shrink: 0;
        }

        .calendar-sync-row {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 0;
            gap: 0;
            padding: 0;
            border-top: none;
        }

        .sync-label {
            display: none;
        }

        .sync-buttons {
            display: flex;
            gap: 0;
            flex: 1;
            justify-content: center;
        }

        .sync-btn {
            height: 28px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 11px;
            font-weight: 500;
            background: #3b82f6;
            color: white;
            padding: 0 10px;
            gap: 4px;
            letter-spacing: 0;
            min-width: auto;
            width: 100%;
        }

        .sync-btn:hover {
            background: #2563eb;
        }

        .sync-btn.google {
            background: #4285f4;
            color: white;
        }

        .sync-btn.google:hover {
            background: #3367d6;
        }

        .sync-btn.apple {
            background: #000000;
            color: white;
        }

        .sync-btn.apple:hover {
            background: #1d1d1f;
        }

        .sync-btn.outlook {
            background: #0078d4;
            color: white;
        }

        .sync-btn.outlook:hover {
            background: #106ebe;
        }

        .calendar-action-btn {
            background: #3b82f6;
            border: none;
            border-radius: 8px;
            color: white;
            padding: 10px 16px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            margin: 8px;
            width: calc(100% - 16px);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .calendar-action-btn:hover {
            background: #2563eb;
        }

        .calendar-btn-small {
            background: #f3f4f6;
            border: none;
            border-radius: 4px;
            color: #6b7280;
            padding: 4px 6px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 24px;
            height: 24px;
        }

        .calendar-btn-small:hover {
            background: #e5e7eb;
            color: #374151;
        }

        .calendar-btn-small.edit {
            background: #dbeafe;
            color: #3b82f6;
        }

        .calendar-btn-small.edit:hover {
            background: #bfdbfe;
            color: #2563eb;
        }

        .calendar-btn-small.delete {
            background: #fee2e2;
            color: #ef4444;
        }

        .calendar-btn-small.delete:hover {
            background: #fecaca;
            color: #dc2626;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .calendar-dropdown {
                min-width: 260px;
                max-width: calc(100vw - 32px);
                left: 16px;
                right: 16px;
            }

            .calendar-item {
                padding: 10px;
            }

            .calendar-name {
                font-size: 13px;
            }

            .calendar-stats {
                font-size: 11px;
                gap: 8px;
            }

            .sync-btn {
                height: 26px;
                font-size: 10px;
                padding: 0 8px;
            }

            .calendar-btn-small {
                min-width: 20px;
                height: 20px;
                font-size: 10px;
            }
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .modal {
            background: rgba(20, 20, 30, 0.96);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
            max-width: 580px;
            width: 90%;
            max-height: 85vh;
            overflow-y: auto;
        }

        .modal-header {
            padding: 32px 48px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-title {
            margin: 0;
            color: #ffffff;
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.03em;
        }

        .modal-close {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
            line-height: 1;
        }

        .modal-close:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
        }

        .modal-body {
            padding: 40px 48px 32px;
        }

        .modal-footer {
            padding: 16px 48px 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            gap: 12px;
            justify-content: space-between;
            align-items: center;
        }

        .footer-left {
            display: flex;
            gap: 12px;
            justify-content: flex-start;
            align-items: center;
        }

        .footer-right {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
            align-items: center;
        }

        /* Two-Column Modal Layout */
        .modal-content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            padding: 20px 24px 0 24px;
        }

        .modal-left-column {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .modal-right-column {
            display: flex;
            flex-direction: column;
        }

        .subscriptions-section {
            height: 100%;
        }

        .subscriptions-header {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .subscription-count {
            background: rgba(0, 122, 255, 0.2);
            color: #5AC8FA;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
        }

        .subscriptions-container {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
        }

        .subscription-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .subscription-info {
            flex: 1;
        }

        .subscription-name {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2px;
        }

        .subscription-meta {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
        }

        .subscription-remove {
            background: rgba(255, 69, 58, 0.2);
            color: #FF453A;
            border: 1px solid rgba(255, 69, 58, 0.3);
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            cursor: pointer;
        }

        .loading-subscriptions {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            font-style: italic;
        }

        /* Form styling adjustments */
        .form-group {
            margin-bottom: 0;
        }

        .form-label {
            display: block;
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .form-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            padding: 12px 16px;
            color: #ffffff;
            font-size: 14px;
            box-sizing: border-box;
        }

        .url-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .url-input {
            padding-right: 50px;
        }

        .copy-url-btn {
            position: absolute;
            right: 8px;
            background: rgba(0, 122, 255, 0.2);
            border: 1px solid rgba(0, 122, 255, 0.3);
            border-radius: 4px;
            padding: 6px 8px;
            color: #5AC8FA;
            cursor: pointer;
        }

        .url-helper-text {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 6px;
            display: block;
        }

        /* Copy URL button styling */
        .copy-url-btn {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 10px;
            border-radius: 8px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .copy-url-btn:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
            transform: scale(1.05);
        }

        .copy-url-btn:active {
            transform: scale(0.95);
            background: #4d4d6f;
        }

        /* Enhanced Modal Layout Styles */
        .url-container {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .url-input {
            flex: 1;
            font-size: 15px;
            padding-right: 70px !important;
            background: rgba(255, 255, 255, 0.03) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
        }

        .url-helper-text {
            color: rgba(255, 255, 255, 0.65);
            font-size: 14px;
            margin-top: 12px;
            display: block;
            line-height: 1.5;
            font-weight: 400;
        }

        .subscriptions-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .subscription-count {
            background: #1a1a2e;
            color: #9ca3af;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 12px;
            border: 1px solid #3d3d5c;
        }

        .subscriptions-container {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(10px);
            min-height: 120px;
        }

        .loading-subscriptions {
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            padding: 40px 24px;
            font-size: 15px;
            font-weight: 400;
        }

        .subscription-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.2s ease;
        }

        .subscription-item:hover {
            background: rgba(255, 255, 255, 0.03);
        }

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

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

        .subscription-item:hover {
            background: #2d2d44;
        }

        .subscription-info {
            flex: 1;
        }

        .subscription-name {
            color: #e4e4e7;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 2px;
        }

        .subscription-meta {
            color: #9ca3af;
            font-size: 11px;
        }

        .subscription-remove {
            background: #dc2626;
            color: white;
            border: none;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .subscription-remove:hover {
            background: #b91c1c;
            transform: scale(1.05);
        }

        /* Better spacing for form groups */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group:last-child {
            margin-bottom: 0;
        }

        .btn {
            padding: 8px 16px;
            border-radius: 8px;
            border: none;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            letter-spacing: -0.01em;
            height: 36px;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-primary {
            background: linear-gradient(135deg, #007AFF 0%, #005FCC 100%);
            color: white;
            box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #0056CC 0%, #004499 100%);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .btn-info {
            background: linear-gradient(135deg, #5AC8FA 0%, #32ADE6 100%);
            color: white;
            box-shadow: 0 4px 16px rgba(90, 200, 250, 0.4);
        }

        .btn-info:hover {
            background: linear-gradient(135deg, #32ADE6 0%, #1E9BD1 100%);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(90, 200, 250, 0.5);
        }

        /* Empty State */
        .calendar-empty {
            padding: 24px 16px;
            text-align: center;
            color: #9ca3af;
            background: white;
            border-radius: 8px;
            margin: 8px;
        }

        .calendar-empty i {
            font-size: 24px;
            color: #d1d5db;
            margin-bottom: 8px;
            display: block;
        }

        .calendar-empty h3 {
            color: #374151;
            font-size: 14px;
            margin-bottom: 4px;
            font-weight: 500;
        }

        .calendar-empty p {
            color: #6b7280;
            font-size: 12px;
            line-height: 1.4;
            margin: 0;
        }

        /* League Sync Styles */
        .league-sync-container {
            position: relative;
            display: inline-block;
            margin-right: 12px;
            margin-bottom: 8px;
        }

        .league-sync-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: #2d2d44;
            border: 1px solid #3d3d5c;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            min-width: 200px;
            max-width: 300px;
            z-index: 1000;
            margin-top: 4px;
            display: none;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.2s ease;
        }

        .league-sync-dropdown.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
            z-index: 1001;
        }

        @media (max-width: 768px) {
            .league-sync-dropdown {
                right: 0;
                left: auto;
                min-width: 180px;
            }
            
            .league-sync-container {
                margin-right: 8px;
                margin-bottom: 6px;
            }
        }

        .sync-calendar-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid #3d3d5c;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sync-calendar-item:hover {
            background: #3d3d5c;
        }

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

        .sync-calendar-item.subscribed {
            background: #1e3a2e;
            cursor: default;
            justify-content: space-between;
        }

        .sync-calendar-item.subscribed:hover {
            background: #1e3a2e;
        }

        .sync-calendar-name {
            color: #e4e4e7;
            font-size: 14px;
            flex: 1;
        }

        .sync-remove-btn {
            background: none;
            border: none;
            color: #ef4444;
            cursor: pointer;
            font-size: 16px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            opacity: 0.7;
            font-weight: bold;
        }

        .sync-remove-btn:hover {
            background: #ef4444;
            color: white;
            opacity: 1;
            transform: scale(1.1);
        }

        /* Premium Calendar Sync Modal */
        .calendar-sync-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            z-index: 1000;
        }

        .calendar-sync-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .calendar-sync-content {
            background: white;
            border-radius: 24px;
            padding: 0;
            width: 90%;
            max-width: 440px;
            box-shadow: 
                0 32px 64px -12px rgba(0, 0, 0, 0.25),
                0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
            animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
        }

        @keyframes slideIn {
            from { 
                transform: translateY(-40px) scale(0.9); 
                opacity: 0; 
            }
            to { 
                transform: translateY(0) scale(1); 
                opacity: 1; 
            }
        }

        .calendar-sync-header {
            padding: 32px 32px 16px 32px;
            text-align: center;
            border-bottom: 1px solid #f3f4f6;
            background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
        }

        .calendar-sync-header h3 {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
            color: #111827;
            letter-spacing: -0.025em;
        }

        .calendar-sync-subtitle {
            margin: 8px 0 0 0;
            font-size: 15px;
            color: #6b7280;
            font-weight: 500;
        }

        .calendar-sync-options {
            padding: 20px;
            background: #ffffff;
        }

        .sync-option {
            display: flex;
            align-items: center;
            padding: 20px;
            margin-bottom: 12px;
            border: 2px solid #f3f4f6;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: white;
            position: relative;
            overflow: hidden;
        }

        .sync-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
            transition: left 0.5s;
        }

        .sync-option:hover::before {
            left: 100%;
        }

        .sync-option:hover {
            border-color: #3b82f6;
            background: linear-gradient(145deg, #f8faff 0%, #f0f7ff 100%);
            transform: translateY(-2px);
            box-shadow: 
                0 10px 15px -3px rgba(59, 130, 246, 0.1),
                0 4px 6px -2px rgba(59, 130, 246, 0.05);
        }

        .sync-option:last-child {
            margin-bottom: 0;
        }

        .sync-option-icon {
            width: 40px;
            height: 40px;
            margin-right: 20px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: white;
            box-shadow: 
                0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
            transition: transform 0.2s ease;
        }

        .sync-option:hover .sync-option-icon {
            transform: scale(1.05);
        }

        .sync-option-icon.google {
            background: #4285f4;
        }

        .sync-option-icon.apple {
            background: #000000;
        }

        .sync-option-icon.outlook {
            background: #0078d4;
        }

        .sync-option-icon.yahoo {
            background: #7B68EE;
        }

        .sync-option-icon.copy-ics {
            background: #f59e0b;
        }

        .sync-option-icon.ics {
            background: #10b981;
        }

        .sync-option-text {
            flex: 1;
        }

        .sync-option-name {
            font-size: 17px;
            font-weight: 600;
            color: #111827;
            margin: 0 0 4px 0;
            letter-spacing: -0.025em;
        }

        .sync-option-desc {
            font-size: 13px;
            color: #6b7280;
            margin: 0;
            line-height: 1.4;
        }

        .calendar-sync-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            font-size: 20px;
            color: #9ca3af;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .calendar-sync-close:hover {
            color: #6b7280;
            background: rgba(255, 255, 255, 1);
            transform: scale(1.05);
        }

        .no-calendars-message {
            padding: 10px;
            border-radius: 6px;
            background-color: #f9fafb;
            border: 1px solid #e5e7eb;
            color: #6b7280;
            text-align: center;
        }

        /* Additional Premium Animations */
        .calendar-item .calendar-stats .stat-number {
            transition: color 0.3s ease;
        }

        .calendar-item:hover .calendar-stats .stat-number {
            color: #8b5cf6;
        }

        .sync-btn i {
            transition: transform 0.2s ease;
        }

        .sync-btn:hover i {
            transform: scale(1.1);
        }

        .calendar-action-btn i {
            transition: transform 0.2s ease;
        }

        .calendar-action-btn:hover i {
            transform: scale(1.1);
        }

        /* Loading states */
        .calendar-loading {
            position: relative;
            color: #9ca3af;
        }

        .calendar-loading::after {
            content: '';
            position: absolute;
            right: -20px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            border: 2px solid #e5e7eb;
            border-top-color: #6366f1;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: translateY(-50%) rotate(360deg); }
        }

        /* Focus states for accessibility */
        .sync-btn:focus,
        .calendar-action-btn:focus {
            outline: none;
            box-shadow: 
                0 0 0 3px rgba(99, 102, 241, 0.3),
                0 20px 25px -5px rgba(99, 102, 241, 0.4),
                0 10px 10px -5px rgba(99, 102, 241, 0.3);
        }

        .sync-option:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }

        .league-badge {
  background: white;
  color: black;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
  margin-bottom: 4px;
  display: inline-block;
}

        .league-badge:hover {
            background: #2563eb;
            transform: translateY(-1px);
        }

        /* Hero section */
        .hero {
            padding: 40px 40px 0;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .hero h1 {
            color: #f4f4f5;
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 16px;
            line-height: 1.1;
        }

        .hero h2 {
            color: #a1a1aa;
            font-size: 24px;
            font-weight: 400;
            margin-bottom: 40px;
            line-height: 1.3;
        }

        .hero-search {
            width: 100%;
            max-width: 500px;
            margin-bottom: 40px;
        }

        .search-input {
            width: 100%;
            background: #1c1c2e;
            border: 2px solid #3d3d5c;
            border-radius: 12px;
            padding: 16px 20px;
            color: #e4e4e7;
            font-size: 16px;
            text-align: center;
            transition: all 0.2s;
        }

        .search-input::placeholder {
            color: #71717a;
        }

        .search-input:focus {
            outline: none;
            border-color: #60a5fa;
            background: #252540;
        }

        .search-input.transferring-focus {
            border-color: #60a5fa;
            box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
        }

        /* Visual connection between hero search and sidebar */
        .search-active .sidebar {
            box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
            transition: box-shadow 0.3s ease;
        }

        /* Continent links */
        .continent-links {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            justify-content: center;
            max-width: 600px;
            margin-bottom: 30px;
        }

        .continent-link {
            background: linear-gradient(135deg, #3d3d5c, #2d2d44);
            border: 1px solid #4d4d6f;
            border-radius: 12px;
            padding: 12px 20px;
            color: #e4e4e7;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 120px;
            justify-content: center;
        }

        .continent-link:hover {
            background: linear-gradient(135deg, #4d4d6f, #3d3d5c);
            border-color: #5d5d8f;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            color: #ffffff;
        }

        .continent-emoji {
            font-size: 18px;
        }

        /* Quick access tags */
        .quick-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            max-width: 800px;
        }

        .tag {
            background: #2d2d44;
            border: 1px solid #3d3d5c;
            border-radius: 20px;
            padding: 8px 16px;
            color: #e4e4e7;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tag:hover {
            background: #3d3d5c;
            border-color: #4d4d6f;
            transform: translateY(-2px);
        }

        /* Dynamic content area */
        .dynamic-content {
            padding: 40px;
            color: #e4e4e7;
            position: relative;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            max-width: 1200px;
            margin:auto;
            width:100%;
        }

        .dynamic-content.loading {
            opacity: 0;
            transform: translateY(20px);
        }

        /* Countries grid styles (for continent pages) */
        .countries-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 0;
        }

        .country-card {
            background: linear-gradient(135deg, #1c1c2e, #252540);
            border: 1px solid #3d3d5c;
            border-radius: 12px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
            overflow: hidden;
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .country-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #60a5fa, #3b82f6);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .country-card:hover {
            background: linear-gradient(135deg, #252540, #2d2d44);
            border-color: #4d4d6f;
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        }

        .country-card:hover::before {
            transform: scaleX(1);
        }

        .country-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #e4e4e7;
        }

        .country-card p {
            font-size: 14px;
            color: #71717a;
            margin: 0;
        }

        /* Leagues grid styles (for country pages) */
        .leagues-grid, .teams-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 0;
        }

        .league-card {
            background: linear-gradient(135deg, #1c1c2e, #252540);
            border: 1px solid #3d3d5c;
            border-radius: 12px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
            overflow: hidden;
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .league-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #10b981, #059669);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .league-card:hover {
            background: linear-gradient(135deg, #252540, #2d2d44);
            border-color: #4d4d6f;
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        }

        .league-card:hover::before {
            transform: scaleX(1);
        }

        .league-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #e4e4e7;
        }

        .league-card p {
            font-size: 14px;
            color: #71717a;
            margin: 0;
        }

        /* Countries grid styles (similar to leagues grid) */
        .countries-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 0;
        }

        .country-card {
            background: linear-gradient(135deg, #1c1c2e, #252540);
            border: 1px solid #3d3d5c;
            border-radius: 12px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
            overflow: hidden;
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .country-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #3b82f6, #1d4ed8);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .country-card:hover {
            background: linear-gradient(135deg, #252540, #2d2d44);
            border-color: #4d4d6f;
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        }

        .country-card:hover::before {
            transform: scaleX(1);
        }

        .country-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #e4e4e7;
        }

        .country-card p {
            font-size: 14px;
            color: #71717a;
            margin: 0;
        }

        /* Teams grid styles (for when showing teams) */
        .teams-grid-header {
            text-align: center;
            margin-bottom: 40px;
        }

        /* Content header styles */
        .content-header {
            text-align: center;
            margin-bottom: 40px;
            padding: 20px 0;
        }

        .content-header h2 {
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #e4e4e7;
            background: linear-gradient(135deg, #60a5fa, #3b82f6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .content-header p {
            font-size: 16px;
            color: #9ca3af;
            margin: 0;
        }

        .teams-grid-title {
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #e4e4e7;
        }

        .teams-grid-subtitle {
            font-size: 16px;
            color: #71717a;
        }

        .league-actions {
            margin-top: 16px;
        }

        .follow-league-btn {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        .follow-league-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
            background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
        }

        .follow-league-btn .follow-icon {
            width: 16px;
            height: 16px;
        }

        /* Calendar Selection Modal */
        .calendar-selection {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .calendar-option {
            background: #3d3d5c;
            border: 1px solid #4d4d6f;
            border-radius: 6px;
            padding: 12px 16px;
            color: #e4e4e7;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
        }

        .calendar-option:hover {
            background: #4d4d6f;
            border-color: #5d5d7f;
            transform: translateY(-1px);
        }

        .teams-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 24px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .standings-section {
            max-width: 1200px;
            margin: 48px auto 0 auto;
            padding: 0 20px;
        }

        .standings-section h2 {
            color: #fff;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 24px;
            text-align: center;
        }

        .standings-loading, .standings-error {
            text-align: center;
            color: #888;
            padding: 40px;
            font-size: 16px;
        }

        .standings-error {
            color: #ff6b6b;
        }

        .team-card {
            background: #1c1c2e;
            border: 1px solid #2d2d44;
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            text-decoration: none;
            color: inherit;
        }

        .team-card:hover {
            background: #252540;
            border-color: #3d3d5c;
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            text-decoration: none;
            color: inherit;
        }

        .team-card-logo {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #2d2d44;
            border: 2px solid #3d3d5c;
            font-size: 24px;
            overflow: hidden;
        }

        .team-card-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .team-card-name {
            font-size: 16px;
            font-weight: 600;
            color: #e4e4e7;
            line-height: 1.2;
        }

        /* Loading state */
        .loading-state {
            text-align: center;
            padding: 60px 40px;
            color: #71717a;
            opacity: 0;
            animation: fadeInLoading 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .loading-state::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #71717a;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s linear infinite;
            margin-left: 10px;
            vertical-align: middle;
        }

        @keyframes fadeInLoading {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @keyframes slideInFromTop {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideOutToTop {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(-10px);
            }
        }

        /* Team details styles (for when showing team details) */
        .nav-section {
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            height: 0;
            overflow: hidden;
        }

        .nav-section.active {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
            height: auto;
            overflow: visible;
        }

        /* Search results */
        .search-results {
            display: none;
        }

        .search-results.active {
            display: block;
        }

        .search-result-item {
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid #2d2d44;
        }

        .search-result-item:hover {
            background: #2d2d44;
        }

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

        .search-result-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: #e4e4e7;
            text-decoration: none;
        }

        .search-result-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background: #3d3d5c;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
            overflow: hidden;
        }

        .search-result-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 6px;
        }

        .search-result-icon.fallback {
            font-size: 16px;
        }

        .search-result-info {
            flex: 1;
            min-width: 0;
        }

        .search-result-name {
            font-size: 14px;
            font-weight: 500;
            color: #e4e4e7;
            margin-bottom: 2px;
        }

        .search-result-subtitle {
            font-size: 12px;
            color: #71717a;
        }

        .search-no-results {
            padding: 20px 16px;
            text-align: center;
            color: #71717a;
            font-size: 14px;
        }

        .search-loading {
            padding: 20px 16px;
            text-align: center;
            color: #71717a;
            font-size: 14px;
        }

        .clear-search {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #71717a;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            display: none;
        }

        .clear-search:hover {
            color: #a1a1aa;
        }

        .clear-search.visible {
            display: block;
        }

        .search-button {
            width: 100%;
            background: #2d2d44;
            border: 1px solid #3d3d5c;
            border-radius: 8px;
            padding: 12px 16px;
            color: #a1a1aa;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            position: relative;
        }

        .search-input-field {
            width: 100%;
            background: transparent;
            border: none;
            color: #e4e4e7;
            font-size: 14px;
            outline: none;
        }

        .search-input-field::placeholder {
            color: #71717a;
        }

        /* Teams loading indicator */
        .teams-loading {
            padding: 8px 16px;
            color: #71717a;
            font-size: 12px;
            font-style: italic;
        }

        .team-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            color: #a1a1aa;
            border-bottom: 1px solid #2d2d44;
            font-size: 13px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateX(-10px);
            animation: slideInTeam 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .team-item:hover {
            background: #2d2d44;
            color: #e4e4e7;
            transform: translateX(0) scale(1.01);
        }

        @keyframes slideInTeam {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .team-item-logo {
            width: 20px;
            height: 20px;
            border-radius: 3px;
            background: #3d3d5c;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
            font-size: 10px;
        }

        .team-item-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 3px;
        }

        .team-item-name {
            flex: 1;
        }

        /* Mobile Sidebar Overlay */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 998;
        }

        .sidebar-overlay.active {
            display: block;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .app-container {
                position: relative;
            }

            .hamburger-menu {
                display: flex;
            }

            .sidebar {
                position: fixed;
                top: 0;
                left: -280px;
                width: 280px;
                height: 100vh;
                max-height: 100vh;
                z-index: 999;
                transition: left 0.3s ease;
                overflow: hidden;
            }

            .sidebar.active {
                left: 0;
            }

            .main-content {
                width: 100%;
                margin-left: 0;
            }
            
            .hero {
                padding: 20px 20px 0;
            }
            
            .hero h1 {
                font-size: 36px;
            }
            
            .hero h2 {
                font-size: 20px;
            }
            
            .header {
                padding: 16px 20px;
            }

            .logo {
                gap: 8px;
            }

            .logo-image {
                height: 28px;
            }

            .logo-tagline {
                font-size: 10px;
            }

            /* Mobile Header Button Icons */
            .button-text {
                display: none;
            }
            
            .header-button {
                padding: 8px;
                min-width: auto;
            }
            
            .calendar-icon, .signout-icon {
                width: 18px;
                height: 18px;
                margin-right: 0;
            }

            .dynamic-content {
                padding: 20px;
                    max-width: 100%;
            }

            .teams-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 16px;
            }
        }

        /* Extra small screens */
        @media (max-width: 480px) {
            .teams-container {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 12px;
            }
        }

        /* Very small screens */
        @media (max-width: 640px) {
            .sync-buttons-row {
                text-align: center;
                gap: 10px;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
            }
            .sync-more-options .league-sync-options.expanded {
    justify-content: center;
}
            .teams-container {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 8px;
            }

            .leagues-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 12px;
            }

            .countries-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 12px;
            }

            .matches-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .team-card {
                padding: 16px;
            }

            .quick-tags {
                max-width: 100%;
            }

            .tag {
                font-size: 12px;
                padding: 6px 12px;
            }

            /* Mobile matches table styling */
            .matches-table-header {
                display: none;
            }

            .match-row {
                display: grid !important;
                grid-template-columns: auto 1fr !important;
                grid-template-areas: 
                    "date event"
                    "time league" !important;
                gap: 2px 10px !important;
                padding: 10px 16px !important;
                align-items: start !important;
            }

            .match-date {
                grid-area: date !important;
                font-size: 13px !important;
                line-height: 1.2 !important;
                font-weight: 500 !important;
                text-align: left !important;
                min-width: 60px !important;
            }

            .match-time {
                grid-area: time !important;
                font-size: 11px !important;
                color: #71717a !important;
                line-height: 1 !important;
                margin-top: 0 !important;
                text-align: left !important;
                min-width: 60px !important;
            }

            .match-event {
                grid-area: event !important;
                font-size: 15px !important;
                margin-bottom: 1px !important;
                line-height: 1.3 !important;
            }

            .match-league {
                grid-area: league !important;
                font-size: 11px !important;
                padding: 2px 6px !important;
                align-self: start !important;
                max-width: fit-content !important;
                margin-top: 0 !important;
            }
        }

        /* Guided Tour Modal Styles */
        #guided-tour-modal.modal {
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100vw !important;
            height: 100vh;
            max-width: none !important;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            display: none;
            overflow-y: visible !important;
        }

        #guided-tour-modal .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #1a1a1a;
            padding: 0;
            border: none;
            border-radius: 12px;
            width: min(95vw, 1200px);
            height: min(90vh, 800px);
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            padding: 20px 30px;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-header h2 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
        }

        .close {
            color: rgba(255, 255, 255, 0.8);
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.2s ease;
            line-height: 1;
            padding: 0;
            background: none;
            border: none;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
        }

        .close:hover,
        .close:focus {
            color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }

        .modal-body {
            padding: 0;
            background-color: #1a1a1a;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .modal-body iframe {
            width: 100% !important;
            height: 100% !important;
            border: none !important;
            border-radius: 0 0 12px 12px !important;
            overflow: hidden !important;
        }

        /* Close modal when clicking outside */
        .modal {
            cursor: pointer;
        }

        .modal-content {
            cursor: default;
        }

        @media (max-width: 768px) {
            .modal-content {
                width: 95vw;
                height: 90vh;
                max-width: 95vw;
                max-height: 90vh;
            }
            
            .modal-header {
                padding: 15px 20px;
            }
            
            .modal-header h2 {
                font-size: 20px;
            }
            
            .modal-body {
                padding: 15px;
            }
        }

        /* Team Error Styles */
        .team-error {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            padding: 40px 20px;
        }

        .error-container {
            text-align: center;
            max-width: 500px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 40px 30px;
        }

        .error-container h1 {
            color: #1e293b;
            font-size: 24px;
            font-weight: 600;
            margin: 0 0 16px 0;
        }

        .error-container p {
            color: #64748b;
            font-size: 16px;
            margin: 0 0 24px 0;
            line-height: 1.5;
        }

        .error-home-link {
            display: inline-block;
            background: #3b82f6;
            color: white;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            transition: background-color 0.2s;
        }

        .error-home-link:hover {
            background: #2563eb;
        }
    