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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

.header {
    background-color: #000000;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.user-name {
    color: #ecf0f1;
    font-size: 0.9rem;
}

.btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #fab819;
    color: #2C2C2C;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #fab819;
    color: #1A1A1A;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-cta {
    background-color: #FF4500;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 69, 0, 0.4);
}

.btn-cta:hover {
    background-color: #E63C00;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

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

main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

h1 {
    color: #fab819;
    margin-bottom: 1.5rem;
}

h2 {
    color: #fab819;
    margin-bottom: 1rem;
}

h3 {
    color: #fab819;
    margin-bottom: 0.75rem;
}

/* Events list view */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.event-item {
    background: white;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-left: 4px solid #fab819;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.event-item:hover {
    box-shadow: 0 4px 8px rgba(237,182,30,0.2);
    border-left-color: #fab819;
    transform: translateX(4px);
}

.event-item-header {
    flex: 1;
    min-width: 0;
}

.event-title-group h3 {
    margin: 0 0 0.5rem 0;
    color: #fab819;
    font-size: 1.2rem;
}

.event-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-item-body {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.event-details-inline {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.event-detail-item {
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Old grid styles for compatibility */
.event-card, .pick-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-details p {
    margin: 0.5rem 0;
    color: #555;
}

.event-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-info {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.event-info p {
    color: #555;
}

.results-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.results-list {
    padding-left: 1.5rem;
}

.results-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.picks-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pick-form {
    max-width: 800px;
}

.podium-section, .time-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-group {
    margin: 1rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #fab819;
}

.time-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-input input {
    width: 80px;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.login-prompt {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-prompt a {
    color: #fab819;
    text-decoration: none;
    font-weight: 500;
}

.score-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.picks-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pick-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.pick-details ol {
    padding-left: 1.5rem;
}

.pick-score {
    margin-top: 1rem;
    padding: 1rem;
    background: #FEF9E7;
    border-radius: 4px;
    text-align: center;
}

.event-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.season-filter {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.season-filter form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.season-filter select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.leaderboard-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.leaderboard-table th {
    background: #fab819;
    color: white;
    padding: 1rem;
    text-align: left;
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.leaderboard-table tr.current-user {
    background: #FEF5E0;
}

.info-message {
    background: #FEF9E7;
    border-left: 4px solid #fab819;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.errors {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.errors p {
    margin: 0.25rem 0;
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-form {
    max-width: 600px;
}

.footer {
    background-color: #000000;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .event-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .results-grid, .pick-details {
        grid-template-columns: 1fr;
    }
}

/* Admin Panel Styles */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-card h2 {
    margin-bottom: 1rem;
    color: #fab819;
}

.admin-card p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.admin-actions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-table thead {
    background-color: #fab819;
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.admin-table tbody tr:hover {
    background-color: #e9ecef;
}

.admin-actions-cell {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    background-color: #fab819;
    color: #2C2C2C;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small:hover {
    background-color: ##fab819;
    color: #1A1A1A;
}

.btn-success {
    background-color: ##fab819;
}

.btn-success:hover {
    background-color: #D4A520;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
    color: white;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-draft {
    background-color: #f39c12;
    color: white;
}

.status-published {
    background-color: #EDB61E;
    color: #2C2C2C;
    font-weight: 500;
}

.status-finished {
    background-color: #95a5a6;
    color: white;
}

.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
}

.admin-form.results-form {
    max-width: 100%;
    width: 100%;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #C9961A;
}

.admin-form input[type="text"],
.admin-form input[type="date"],
.admin-form input[type="number"],
.admin-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.admin-form input:focus,
.admin-form select:focus {
    outline: none;
    border-color: #EDB61E;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.result-row {
    display: grid;
    grid-template-columns: 90px minmax(200px, 1fr) 140px;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.results-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.results-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2C2C2C;
}

.results-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .results-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .result-row {
        grid-template-columns: 80px minmax(240px, 1fr) 140px;
    }
}

.existing-results {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.message.error {
    background-color: #fee;
    color: #c00;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #c00;
}

.message.success {
    background-color: #FEF9E7;
    color: #4A3B05;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #4A3B05;
}

.time-pick {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.time-pick h4 {
    margin-bottom: 0.5rem;
    color: #C9961A;
}

/* Ranking controls and tabs */
.ranking-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.race-type-tabs {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.race-type-tabs .tab {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    font-weight: 500;
}

.race-type-tabs .tab:hover {
    background-color: #f0f0f0;
    color: #333;
}

.race-type-tabs .tab.active {
    background-color: #EDB61E;
    color: white;
}

@media (max-width: 768px) {
    .ranking-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .race-type-tabs {
        justify-content: center;
    }
}

/* Events controls and filtering */
.events-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-status-tabs {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-status-tabs .tab {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
}

.event-status-tabs .tab:hover {
    background-color: #f0f0f0;
    color: #333;
}

.event-status-tabs .tab.active {
    background-color: #EDB61E;
    color: white;
}

.events-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #EDB61E;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #EDB61E;
}

/* Event badges - inline for list view */
.race-type-badge {
    background: #FEF9E7;
    color: #C9961A;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.past-badge {
    background: #7D6E1C;
    color: white;
}

.draft-badge {
    background: #6B7280;
    color: white;
}

.draft-info {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #6B7280;
}

/* Event card badges - for old card layout */
.event-card {
    position: relative;
}

#no-results-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

@media (max-width: 768px) {
    .events-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .event-status-tabs {
        justify-content: center;
    }
    
    .events-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
}

/* Athlete filters */
.athlete-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.athlete-filters h4 {
    margin-bottom: 1rem;
    color: #C9961A;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 500;
    color: #555;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 150px;
}

.filter-group select:focus {
    outline: none;
    border-color: #EDB61E;
}

.filter-group .btn-secondary {
    margin-left: auto;
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .filter-group .btn-secondary {
        margin-left: 0;
        width: 100%;
    }
}

/* Profile page */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-section h2 {
    margin-bottom: 1.5rem;
    color: #C9961A;
    border-bottom: 2px solid #EDB61E;
    padding-bottom: 0.5rem;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.profile-form input[type="text"]:focus,
.profile-form input[type="email"]:focus,
.profile-form input[type="password"]:focus {
    outline: none;
    border-color: #EDB61E;
}

.profile-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

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

/* Responsive events list */
@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .event-item-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .event-details-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .btn-small {
        width: 100%;
        text-align: center;
    }
}

/* Admin - Event Athletes Assignment */
.btn-info {
    background: #3B82F6;
    color: white;
}

.btn-info:hover {
    background: #2563EB;
}

.athletes-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.selection-column h4 {
    margin-bottom: 1rem;
    color: #C9961A;
    border-bottom: 2px solid #EDB61E;
    padding-bottom: 0.5rem;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.country-badge {
    font-size: 0.85rem;
    color: #6B7280;
    margin-left: auto;
}

.assigned-summary {
    margin-top: 2rem;
    padding: 1rem;
    background: #FEF9E7;
    border-left: 4px solid #EDB61E;
    border-radius: 4px;
}

.assigned-summary h3 {
    margin: 0;
    color: #C9961A;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .athletes-selection {
        grid-template-columns: 1fr;
    }
}

.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #EDB61E;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: help;
    transition: all 0.3s ease;
    vertical-align: middle;
    border: none;
    padding: 0;
    outline: none;
}

.tooltip-icon:focus {
    outline: 2px solid #C9961A;
    outline-offset: 2px;
}

.tooltip-icon:hover {
    background: #C9961A;
    transform: scale(1.1);
}

.tooltip-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #EDB61E;
    border-radius: 12px;
    padding: 1.25rem;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: #EDB61E;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: white;
    z-index: 1;
}

.info-tooltip:hover .tooltip-content,
.info-tooltip.active .tooltip-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tooltip-content strong {
    display: block;
    color: #C9961A;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FEF9E7;
}

.tooltip-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

.tooltip-content li {
    padding: 0.25rem 0;
    color: #2C2C2C;
    font-size: 0.95rem;
}

.tooltip-content li strong {
    display: inline;
    color: #C9961A;
    font-size: inherit;
    margin: 0;
    padding: 0;
    border: none;
}

.tooltip-content a {
    display: inline-block;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.tooltip-content a:hover {
    color: #C9961A;
}

@media (max-width: 768px) {
    .tooltip-content {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }
    
    .tooltip-content::after,
    .tooltip-content::before {
        display: none;
    }
    
    .info-tooltip.active .tooltip-content {
        animation: slideUp 0.3s ease;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}
