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

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: #f5f7fa;
        transition: background-color 0.3s ease, color 0.3s ease;
        overflow-y: scroll;
    }

    body.dark-mode {
        background: #0f172a;
        color: #e2e8f0;
    }

    .sidebar {
        width: 275px;
        background: white;
        padding: 20px;
        border-right: 1px solid #e5e7eb;
        position: fixed;
        height: 100vh;
        overflow-y: auto;
        transition: all 0.3s ease;
        z-index: 1000;
        left: 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .sidebar.collapsed {
        width: 80px;
    }

    body.dark-mode .sidebar {
        background: #1e293b;
        border-right: 1px solid #334155;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
        transition: all 0.3s ease;
    }

    .sidebar.collapsed .logo {
        justify-content: center;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .logo-text {
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .sidebar.collapsed .logo-text {
        width: 0;
        opacity: 0;
    }

    .logo-text h1 {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        white-space: nowrap;
        transition: color 0.3s ease;
    }

    body.dark-mode .logo-text h1 {
        color: #f1f5f9;
    }

    .logo-text p {
        font-size: 11px;
        color: #6b7280;
        white-space: nowrap;
        transition: color 0.3s ease;
    }

    body.dark-mode .logo-text p {
        color: #94a3b8;
    }

    .toggle-sidebar {
        position: absolute;
        top: 20px;
        right: -15px; /* Normal holat */
        width: 32px; /* Biroz kattaroq */
        height: 32px; /* Biroz kattaroq */
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    /* YANGI: Sidebar yopilganda tugmani o'ngga siljitish */
    .sidebar.collapsed .toggle-sidebar {
        right: -15px; /* Bir xil qiymat */
        left: auto; /* Chap tomondan pozitsiyani bekor qilish */
    }

    body.dark-mode .toggle-sidebar {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }

    .toggle-sidebar:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    /* Icon kattaligini oshirish */
    .toggle-sidebar i {
        font-size: 14px;
        font-weight: bold;
    }

    /* Mobile uchun tuzatish */
    @media (max-width: 768px) {
        .toggle-sidebar {
            right: 15px;
            top: 15px;
        }
        
        .sidebar.collapsed .toggle-sidebar {
            right: 15px;
        }
    }
    .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        margin-bottom: 4px;
        border-radius: 8px;
        color: #4b5563;
        text-decoration: none;
        transition: all 0.2s;
        cursor: pointer;
        white-space: nowrap;
    }

    .sidebar.collapsed .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .sidebar.collapsed .nav-item span {
        display: none;
    }

    body.dark-mode .nav-item {
        color: #cbd5e1;
    }

    .nav-item:hover {
        background: #f3f4f6;
    }

    body.dark-mode .nav-item:hover {
        background: #334155;
    }

    .nav-item.active {
        background: #eff6ff;
        color: #2563eb;
    }

    body.dark-mode .nav-item.active {
        background: #1e3a8a;
        color: #93c5fd;
    }

    .nav-item i {
        width: 20px;
        text-align: center;
        font-size: 18px;
    }

    .nav-section {
        margin-top: 32px;
        margin-bottom: 12px;
    }

    .nav-section-title {
        font-size: 12px;
        font-weight: 600;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0 16px;
        margin-bottom: 8px;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .sidebar.collapsed .nav-section-title {
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
    }

    .calc-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        margin-bottom: 4px;
        color: #4b5563;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .sidebar.collapsed .calc-item {
        justify-content: center;
        padding: 10px;
    }

    .sidebar.collapsed .calc-item span {
        display: none;
    }

    body.dark-mode .calc-item {
        color: #cbd5e1;
    }

    .calc-item:hover {
        background: #f3f4f6;
    }

    body.dark-mode .calc-item:hover {
        background: #334155;
    }

    .calc-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        min-width: 8px;
    }

    .calc-dot.yellow { background: #fbbf24; }
    .calc-dot.red { background: #ef4444; }
    .calc-dot.blue { background: #2563eb; }
    .calc-dot.green { background: #10b981; }

    .main-content {
        margin-left: 275px;
        padding: 24px 40px;
        transition: margin-left 0.3s ease;
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: 80px;
    }

    @media (max-width: 768px) {
        .sidebar {
            transform: translateX(-100%);
        }

        .sidebar.show {
            transform: translateX(0);
        }

        .main-content {
            margin-left: 0 !important;
            padding: 20px;
        }

        .mobile-toggle {
            display: block !important;
        }
    }

    .mobile-toggle {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: #2563eb;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 32px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .search-box {
        position: relative;
        flex: 1;
        max-width: 400px;
        min-width: 250px;
    }

    .search-box input {
        width: 100%;
        padding: 12px 16px 12px 44px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        font-size: 14px;
        background: white;
        transition: all 0.3s ease;
    }

    body.dark-mode .search-box input {
        background: #1e293b;
        border: 1px solid #334155;
        color: #e2e8f0;
    }

    body.dark-mode .search-box input::placeholder {
        color: #64748b;
    }

    .search-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        transition: color 0.3s ease;
    }

    body.dark-mode .search-icon {
        color: #64748b;
    }

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

    .theme-toggle, .user-profile {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
    }

    .theme-toggle {
        background: white;
        border: 1px solid #e5e7eb;
        font-size: 18px;
    }

    body.dark-mode .theme-toggle {
        background: #1e293b;
        border: 1px solid #334155;
        color: #fbbf24;
    }

    .theme-toggle:hover {
        background: #f9fafb;
        transform: rotate(15deg);
    }

    body.dark-mode .theme-toggle:hover {
        background: #334155;
    }

    .user-profile {
        background: #3b82f6;
        color: white;
        font-weight: 600;
    }

    .login-btn {
        padding: 10px 24px;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .login-btn:hover {
        background: #1d4ed8;
    }

    .hero {
        background: linear-gradient(135deg, #3b4c9e 0%, #2a3a8f 50%, #1f2d7a 100%);
        border-radius: 24px;
        padding: 60px;
        color: white;
        position: relative;
        overflow: hidden;
        margin-bottom: 48px;
    }

    @media (max-width: 768px) {
        .hero {
            padding: 40px 30px;
        }

        .hero h1 {
            font-size: 36px !important;
        }
    }

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .hero::after {
        content: '';
        position: absolute;
        bottom: -30%;
        right: 20%;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
    }

    .hero-content {
        position: relative;
        z-index: 1;
    }

    .version-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        font-size: 13px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 52px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 18px;
        line-height: 1.6;
        max-width: 600px;
        opacity: 0.95;
        margin-bottom: 32px;
    }

    .hero-buttons {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }

    .btn-primary, .btn-secondary {
        padding: 14px 32px;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        border: none;
        font-size: 15px;
    }

    .btn-primary {
        background: white;
        color: #2563eb;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .btn-secondary {
        background: transparent;
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

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

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 32px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .section-header h2 {
        font-size: 24px;
        font-weight: 700;
        color: #111827;
        transition: color 0.3s ease;
    }

    body.dark-mode .section-header h2 {
        color: #f1f5f9;
    }

    .section-header p {
        color: #6b7280;
        font-size: 14px;
        transition: color 0.3s ease;
    }

    body.dark-mode .section-header p {
        color: #94a3b8;
    }

    .view-all {
        color: #2563eb;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .calculators-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

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

    .calc-card {
        background: white;
        border-radius: 20px;
        padding: 32px 28px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid #f3f4f6;
        position: relative;
        overflow: hidden;
    }

    body.dark-mode .calc-card {
        background: #1e293b;
        border: 1px solid #334155;
    }

    body.dark-mode .calc-card.yellow {
        background: #422006 !important;
    }

    body.dark-mode .calc-card.red {
        background: #450a0a !important;
    }

    body.dark-mode .calc-card.blue {
        background: #172554 !important;
    }

    body.dark-mode .calc-card.green {
        background: #022c22 !important;
    }

    .calc-card::before {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        bottom: 120px;
        right: 10px;
        font-size: 120px;
        opacity: 0.15;
        transform: rotate(12deg);
    }

    .calc-card.yellow::before {
        content: '\f0eb';
        color: #fbbf24;
    }

    .calc-card.red::before {
        content: '\f06d';
        color: #ef4444;
    }

    .calc-card.blue::before {
        content: '\f015';
        color: #3b82f6;
    }

    .calc-card.green::before {
        content: '\f06c';
        color: #10b981;
    }

    .calc-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    }

    body.dark-mode .calc-card:hover {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    }

    .calc-card:hover::before {
        transform: scale(1.05);
        opacity: 0.08;
    }

    .calc-icon-wrapper {
        position: relative;
        z-index: 1;
        margin-bottom: 24px;
    }

    .calc-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        transition: transform 0.3s ease;
    }

    .calc-card:hover .calc-icon {
        transform: scale(1.1);
    }

    .calc-card.yellow .calc-icon {
        background: #fef3c7;
        color: #d97706;
    }

    .calc-card.red .calc-icon {
        background: #fee2e2;
        color: #dc2626;
    }

    .calc-card.blue .calc-icon {
        background: #eff6ff;
        color: #2563eb;
    }

    .calc-card.green .calc-icon {
        background: #d4fbf2;
        color: #059669;
    }

    .calc-card h3 {
        font-size: 19px;
        font-weight: 700;
        margin-bottom: 12px;
        color: #111827;
        transition: color 0.3s ease;
        position: relative;
        z-index: 1;
    }

    body.dark-mode .calc-card h3 {
        color: #f1f5f9;
    }

    .calc-card p {
        color: #6b7280;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
        transition: color 0.3s ease;
        position: relative;
        z-index: 1;
    }

    body.dark-mode .calc-card p {
        color: #94a3b8;
    }

    .calc-link {
        font-weight: 600;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .calc-card.yellow .calc-link {
        color: #d97706;
    }

    .calc-card.red .calc-link {
        color: #dc2626;
    }

    .calc-card.blue .calc-link {
        color: #475569;
    }

    body.dark-mode .calc-card.blue .calc-link {
        color: #93c5fd;
    }

    .calc-card.green .calc-link {
        color: #059669;
    }

    .calc-link:hover {
        gap: 12px;
    }

    .calc-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        transition: all 0.3s ease;
    }

    .calc-card.yellow::after {
        background: #fbbf24;
    }

    .calc-card.red::after {
        background: #ef4444;
    }

    .calc-card.blue::after {
        background: #3b82f6;
    }

    .calc-card.green::after {
        background: #10b981;
    }

    .user-badge {
        position: fixed;
        bottom: 24px;
        left: 20px;
        background: white;
        padding: 12px 16px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .sidebar.collapsed .user-badge {
        left: 15px;
        flex-direction: column;
        padding: 12px;
    }

    .sidebar.collapsed .user-badge .user-info {
        display: none;
    }

    body.dark-mode .user-badge {
        background: #1e293b;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: white;
    }

    .user-info p {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        transition: color 0.3s ease;
    }

    body.dark-mode .user-info p {
        color: #f1f5f9;
    }

    .user-info span {
        font-size: 12px;
        color: #9ca3af;
        transition: color 0.3s ease;
        cursor: pointer;
    }

    body.dark-mode .user-info span {
        color: #64748b;
    }

    .user-info span:hover {
        color: #2563eb;
    }

    @media (max-width: 768px) {
        .user-badge {
            display: none;
        }
    }