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

        body {
            font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
            background: #f8f9fa;
            color: #212529;
            line-height: 1.8;
            padding: 20px;
            direction: rtl;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            margin-bottom: 30px;
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 10px;
        }

        .subtitle {
            color: #6c757d;
            font-size: 1rem;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 40px;
        }

        /* Calendar Styles */
        .calendar-section {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 20px;
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e0e0e0;
        }

        .calendar-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a1a;
        }

        .calendar-nav {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .nav-btn {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 8px 12px;
            cursor: pointer;
            font-size: 1.25rem;
            transition: all 0.2s;
            color: #495057;
        }

        .nav-btn:hover {
            background: #e9ecef;
            border-color: #adb5bd;
        }

        .calendar-type-switcher {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            background: #f8f9fa;
            padding: 4px;
            border-radius: 8px;
        }

        .calendar-type-btn {
            flex: 1;
            padding: 8px 16px;
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 600;
            color: #6c757d;
            transition: all 0.2s;
        }

        .calendar-type-btn.active {
            background: white;
            color: #1a1a1a;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .today-info {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }

        .today-date {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .today-details {
            font-size: 0.875rem;
            opacity: 0.9;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }

        .calendar-day-header {
            text-align: center;
            font-size: 0.875rem;
            font-weight: 600;
            color: #6c757d;
            padding: 10px 0;
        }

        .calendar-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.875rem;
            position: relative;
        }

        .calendar-day:hover {
            background: #f8f9fa;
        }

        .calendar-day.other-month {
            color: #adb5bd;
        }

        .calendar-day.today {
            background: #667eea;
            color: white;
            font-weight: 700;
        }

        .calendar-day.selected {
            background: #764ba2;
            color: white;
            font-weight: 700;
        }

        .calendar-day.holiday {
            color: #ef4444;
        }

        /* Price Section Styles */
        .price-section {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 20px;
        }

        .section-header {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .live-badge {
            display: inline-block;
            background: #22c55e;
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            animation: livePulse 2s infinite;
        }

        @keyframes livePulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        .price-grid {
            display: grid;
            gap: 12px;
        }

        .price-card {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            padding: 12px;
            transition: all 0.2s;
            position: relative;
        }

        .price-card:hover {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            border-color: #dee2e6;
        }

        .price-card.loading {
            opacity: 0.6;
        }

        .price-label {
            font-size: 0.75rem;
            color: #6c757d;
            font-weight: 500;
            margin-bottom: 6px;
        }

        .price-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 4px;
        }

        .price-change {
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .price-change.positive {
            color: #22c55e;
        }

        .price-change.negative {
            color: #ef4444;
        }

        .price-change.neutral {
            color: #6c757d;
        }

        .update-indicator {
            position: absolute;
            top: 8px;
            left: 8px;
            width: 6px;
            height: 6px;
            background: #22c55e;
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .update-indicator.active {
            opacity: 1;
            animation: pulse 1s ease-in-out;
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.5);
                opacity: 0.7;
            }
        }

        .loading-spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 6px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* League Table Styles */
        .league-section {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 20px;
        }

        .table-container {
            overflow-x: auto;
            overflow-y: hidden;
        }

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

        thead {
            background: #f8f9fa;
        }

        th {
            padding: 14px 10px;
            text-align: right;
            font-size: 0.875rem;
            font-weight: 600;
            color: #6c757d;
            border-bottom: 2px solid #e0e0e0;
        }

        td {
            padding: 14px 10px;
            font-size: 0.9375rem;
            border-bottom: 1px solid #f0f0f0;
            text-align: right;
        }

        tbody tr:hover {
            background: #fafafa;
        }

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

        .team-name {
            font-weight: 600;
            color: #1a1a1a;
        }

        .top-team {
            background: #fef9e7;
        }

        .top-team .team-name {
            color: #d97706;
        }

        .points {
            font-weight: 700;
            color: #1a1a1a;
        }

        .positive-gd {
            color: #22c55e;
        }

        .negative-gd {
            color: #ef4444;
        }

        footer {
            text-align: center;
            padding: 30px 20px;
            color: #6c757d;
            font-size: 0.875rem;
            border-top: 1px solid #e0e0e0;
            margin-top: 40px;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 12px;
            }

            h1 {
                font-size: 1.75rem;
            }

            .calendar-day {
                font-size: 0.75rem;
            }

            .today-date {
                font-size: 1.25rem;
            }

            th,
            td {
                padding: 10px 6px;
                font-size: 0.8125rem;
            }

            th:nth-child(n+5),
            td:nth-child(n+5) {
                display: none;
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 1.5rem;
            }

            .calendar-nav {
                gap: 6px;
            }

            .nav-btn {
                padding: 6px 10px;
                font-size: 1rem;
            }

            th:nth-child(4),
            td:nth-child(4) {
                display: none;
            }
        }