:root {
    --primary: #1a3a52;
    --primary-dark: #0f2a3d;
    --primary-light: #2d5166;
    --secondary: #2d5f5d;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1a3a52;
    --light: #f9fafb;
    --border: #e5e7eb;
    --accent-light: #a7f3d0;
    --accent-lighter: #6ee7b7;
    --text-muted: #6b7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #1a3a52 0%, #2d5f5d 100%);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.03em;
    font-weight: 700;
}

header {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5f5d 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-text {
    font-size: 1.625rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.03em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.user-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.signup-link {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.signup-link:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.5);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

footer {
    background: rgba(31, 41, 55, 0.95);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        gap: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    border-left: 4px solid;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: var(--danger);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.page-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    font-weight: 600;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-outline {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.admin-leagues-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.league-card, .admin-league-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    overflow: hidden;
}

.league-card:hover, .admin-league-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.league-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.league-card-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
}

.league-card-placeholder::after {
    content: '🏓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.league-card-content {
    padding: 2rem;
}

.admin-league-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.admin-league-card-header {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.admin-league-card-image-wrapper {
    flex-shrink: 0;
}

.league-card-image-admin {
    width: 90px;
    height: 90px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.league-card-placeholder-admin {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
}

.league-card-placeholder-admin::after {
    content: '🏓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.35;
}

.admin-league-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.admin-league-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.admin-league-card h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.owner-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.free-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.private-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.admin-league-meta {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.75rem;
}

.admin-league-meta .meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5a6c7d;
    font-size: 0.875rem;
    line-height: 1.4;
}

.admin-league-meta .meta-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #2d5f5d;
    opacity: 0.8;
}

.admin-league-meta .meta-text {
    color: #4a5568;
    font-weight: 500;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.admin-league-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.admin-league-actions .btn {
    flex: 0 1 auto;
    min-width: 100px;
}

.admin-league-actions form {
    display: inline-flex;
}

.league-card h3 {
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.league-info {
    margin: 1.25rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.league-info p {
    margin: 0.625rem 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.league-info p strong {
    color: #1f2937;
    font-weight: 600;
    min-width: 80px;
}

.league-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    font-size: 0.95rem;
}

.league-actions {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.league-actions .btn {
    flex: 1;
    min-width: 110px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.league-actions form {
    flex: 1;
    min-width: 110px;
}

.league-actions form .btn {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.empty-state p {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

tbody tr:last-child td {
    border-bottom: none;
}

.player-name {
    font-weight: 700;
    color: var(--dark);
}

.total-points {
    font-weight: 800;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.positive {
    color: var(--success);
    font-weight: 600;
}

.negative {
    color: var(--danger);
    font-weight: 600;
}

.standings-section, .games-section {
    margin: 3rem 0;
}

.standings-section h3, .games-section h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.filters label {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filters select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.round-group h4 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.game-card {
    background: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Playoff Game Styling */
.game-card.playoff-game {
    border: 3px solid #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
}

.playoff-badge {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5f5d 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.playoff-badge.semifinal-1,
.playoff-badge.semifinal-2 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.playoff-badge.final {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.playoff-badge .seed-info {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.9;
}

.game-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    padding: 1.5rem;
    align-items: stretch;
}

.team-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--light);
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.team-box.winner {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.team-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.team-box.winner .team-label {
    color: var(--success);
}

.team-players {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.team-score {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-top: 0.5rem;
}

.team-box.winner .team-score {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-input {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    width: 80px;
    padding: 0.25rem;
    margin-top: 0.5rem;
    border: 2px dashed var(--primary);
    border-radius: 8px;
    background: rgba(26, 58, 82, 0.05);
    -moz-appearance: textfield;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.2);
}

.score-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(26, 58, 82, 0.2);
}

.save-status {
    font-size: 0.85rem;
    font-weight: 600;
}

.save-status.success {
    color: var(--success);
}

.save-status.error {
    color: var(--danger);
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: #9ca3af;
    text-transform: uppercase;
    padding: 0 0.5rem;
}

.game-result-banner {
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.game-result-banner.result-A_WIN,
.game-result-banner.result-B_WIN {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success);
}

.game-result-banner.result-DRAW {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.game-result-banner.result-pending,
.game-result-banner.result-PENDING {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

.result-icon {
    font-size: 1.25rem;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border);
    animation: slideUp 0.4s ease;
}

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

.auth-card h2 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input::placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
}

.form-group input:hover {
    border-color: #d1d5db;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.help-text {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.admin-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.playoff-status {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
    background: white;
}

.playoff-status.success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.playoff-status.ready {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.playoff-status.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.playoff-status p {
    margin: 0.5rem 0;
    color: #374151;
}

.playoff-status p:first-child {
    margin-top: 0;
}

.playoff-status p:last-child {
    margin-bottom: 0;
}

.inline-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    border: 1px solid var(--border);
}

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

/* Edit League Form Styles */
.edit-league-form {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.edit-league-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .edit-league-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.current-image-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

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

.no-image-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.no-image-icon {
    font-size: 5rem;
    opacity: 0.3;
}

.no-image-preview p {
    color: white;
    font-weight: 600;
    opacity: 0.8;
    margin: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.file-upload-label:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a1f2e 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.file-upload-label svg {
    color: white;
    fill: none;
}

.helper-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 0.875rem;
    color: #0c4a6e;
    font-weight: 600;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-actions-sticky {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.back-link a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    color: white;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.4);
}

.stat-card h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.action-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.action-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-block;
}

.badge-pending {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-a_win {
    background: #d1fae5;
    color: #065f46;
}

.badge-b_win {
    background: #dbeafe;
    color: #1e40af;
}

.badge-draw {
    background: #fef3c7;
    color: #92400e;
}

.admin-league-overview {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .leagues-grid, .admin-leagues-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .admin-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-links a {
        padding: 0.625rem 1rem;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: white !important;
        font-size: 0.875rem;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    
    .signup-link {
        background: rgba(255, 255, 255, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
    }
    
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header h2 {
        font-size: 1.75rem;
    }
    
    .leagues-grid, .admin-leagues-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .league-card, .admin-league-card {
        padding: 1.5rem;
    }
    
    .league-actions {
        flex-direction: column;
    }
    
    .league-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .league-actions form {
        width: 100%;
    }
    
    .league-actions form .btn {
        width: 100%;
    }
    
    .admin-league-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .admin-league-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-width: auto;
    }
    
    .admin-league-actions form {
        width: 100%;
    }
    
    .admin-league-actions form .btn {
        width: 100%;
    }
    
    .admin-league-card {
        padding: 1.25rem;
    }
    
    .admin-league-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .league-card-image-admin {
        width: 100%;
        height: 150px;
    }
    
    .table-responsive {
        border-radius: 12px;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    th {
        font-size: 0.7rem;
    }
    
    .standings-section h3, .games-section h3 {
        font-size: 1.5rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
    }
    
    .filters label {
        font-size: 0.8rem;
    }
    
    .filters select {
        width: 100%;
        padding: 0.625rem 0.875rem;
    }
    
    .game-matchup {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .vs-divider {
        order: 2;
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    .team-box:first-child {
        order: 1;
    }
    
    .team-box:last-child {
        order: 3;
    }
    
    .team-score {
        font-size: 2.5rem;
    }
    
    .game-result-banner {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row input, .form-row select {
        width: 100%;
        min-width: 100%;
    }
    
    .inline-form {
        flex-direction: column;
    }
    
    .inline-form input, .inline-form select {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .admin-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .admin-section h3 {
        font-size: 1.25rem;
    }
    
    .admin-league-overview {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2.5rem;
    }
    
    .admin-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        min-height: 44px;
        font-size: 0.95rem;
        width: auto;
    }
    
    .btn-sm {
        padding: 0.625rem 1rem;
        min-height: 36px;
        font-size: 0.875rem;
    }
    
    .btn-small {
        padding: 0.625rem 1rem;
        min-height: 36px;
    }
    
    .btn-primary, .btn-secondary, .btn-danger, .btn-warning, .btn-outline {
        color: white !important;
    }
    
    .btn-outline {
        color: var(--primary) !important;
    }
    
    .btn-outline:hover {
        color: white !important;
    }
    
    .round-group h4 {
        font-size: 1.125rem;
        padding: 0.875rem 1.25rem;
    }
    
    .league-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .page-header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .page-header .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .league-card h3, .admin-league-card h3 {
        font-size: 1.25rem;
    }
    
    .standings-section h3, .games-section h3 {
        font-size: 1.25rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .admin-section {
        padding: 1.25rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 0.625rem 0.375rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .admin-league-card-header {
        gap: 1rem;
    }
    
    .admin-league-actions {
        gap: 0.5rem;
    }
    
    .admin-league-actions .btn {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Sortable table headers */
th[data-sortable] {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}

th[data-sortable]:hover {
    background-color: rgba(26, 58, 82, 0.1) !important;
    color: var(--primary);
}

th[data-sortable]:active {
    background-color: rgba(26, 58, 82, 0.15) !important;
}

th.sort-asc,
th.sort-desc {
    background-color: rgba(45, 95, 93, 0.15) !important;
    font-weight: 700;
}

/* ========== LANDING PAGE STYLES ========== */

.landing-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

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

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.95rem;
}

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

.feature-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 2rem;
    background: var(--light);
    margin: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.step-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow);
}

.pricing-badge-featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.pricing-amount {
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
}

.period {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.875rem 0;
    color: var(--text-muted);
    font-size: 1rem;
    border-bottom: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Final CTA Section */
.final-cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    color: white;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.final-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    color: white;
    letter-spacing: -0.04em;
}

.final-cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

/* Responsive Design for Landing Page */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 400px;
    }
    
    .features-section,
    .how-it-works-section,
    .pricing-section,
    .final-cta-section {
        padding: 3rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.05rem;
    }
    
    .features-grid,
    .steps-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .final-cta-section h2 {
        font-size: 2rem;
    }
    
    .final-cta-section p {
        font-size: 1.1rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .features-section,
    .how-it-works-section,
    .pricing-section,
    .final-cta-section {
        padding: 2.5rem 1rem;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        padding: 5rem 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}
