        /* Instagram Brand Colors */
        :root {
            --instagram-purple: #833AB4;
            --instagram-blue: #5851DB;
            --instagram-pink: #E1306C;
            --instagram-orange: #F77737;
            --instagram-red: #FD1D1D;
            --instagram-light-gray: #FAFAFA;
            --instagram-medium-gray: #EFEFEF;
            --instagram-dark-gray: #8E8E8E;
            --instagram-black: #000000;
            --instagram-white: #FFFFFF;
        }
        
        /* Wrapper to avoid WordPress conflicts */
        .instagram-downloader-wrapper {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: var(--instagram-light-gray);
            line-height: 1.6;
            color: var(--instagram-black);
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        .instagram-downloader-wrapper * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        .main-contain {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* Modern Instagram-inspired UI */
        .ig-tool-wrapper {
            width: 100%;
            margin: 20px auto;
            padding: 35px;
            border-radius: 20px;
            background: linear-gradient(135deg, var(--instagram-purple), var(--instagram-blue) 35%, var(--instagram-pink) 70%, var(--instagram-orange));
            color: var(--instagram-white);
            text-align: center;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
        }
        
        .ig-tool-wrapper::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 60%);
            pointer-events: none;
        }
        
        /* Header with proper headings */
        .ig-header h1 {
            font-size: 36px;
            font-weight: 800;
            color: var(--instagram-white);
            margin-bottom: 15px;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .ig-header h2 {
            font-size: 17px;
            margin: 15px 0 25px;
            line-height: 1.6;
            font-weight: 400;
            opacity: 0.9;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* Input Area */
        .ig-input-area {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.95);
            padding: 25px 20px;
            border-radius: 16px;
            gap: 15px;
            margin: 0 auto;
            max-width: 100%;
            flex-wrap: wrap;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            position: relative;
        }
        
        .ig-icon {
            font-size: 16px;
            color: var(--instagram-dark-gray);
            font-weight: 500;
            width: 100%;
            text-align: left;
            margin-bottom: 10px;
        }
        
        .ig-input-area input {
            flex-grow: 1;
            padding: 14px 18px;
            font-size: 16px;
            border: none;
            outline: none;
            min-width: 200px;
            background: var(--instagram-white);
            border-radius: 12px;
            transition: all 0.3s;
            color: var(--instagram-black);
            font-weight: 500;
        }
        
        .ig-input-area input:focus {
            background: var(--instagram-white);
            box-shadow: 0 0 0 2px rgba(88, 81, 219, 0.3);
        }
        
        .error-container {
            margin-top: 25px;
            position: absolute;
            bottom: -60px;
            left: 20px;
            right: 20px;
        }
        
        #error-message {
            color: var(--instagram-red);
            margin-top: 25px;
            display: none;
            font-weight: 500;
        }
        
        .paste-btn,
        .view-btn {
            border: none;
            border-radius: 12px;
            padding: 14px 20px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            margin-bottom: 15px;
        }
        
        .paste-btn {
            background: var(--instagram-blue);
            color: var(--instagram-white);
        }
        
        .paste-btn:hover {
            background: #4A4AD1;
            transform: translateY(-2px);
        }
        
        .view-btn {
            background: var(--instagram-pink);
            color: var(--instagram-white);
            box-shadow: 0 5px 15px rgba(225, 48, 108, 0.3);
        }
        
        .view-btn:hover {
            background: #D02060;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
        }
        
        .view-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        /* Ad Space */
        .ad-space {
            margin-top: 20px;
            text-align: center;
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            padding: 6px;
            background: linear-gradient(135deg, var(--instagram-purple), var(--instagram-blue) 35%, var(--instagram-pink) 70%, var(--instagram-orange));
            background-size: 300% 300%;
            animation: gradientBorder 6s ease infinite;
        }
        
        @keyframes gradientBorder {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .ad-inner {
            border-radius: 12px;
            overflow: hidden;
            background-color: var(--instagram-white);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            animation: floatAd 5s ease-in-out infinite;
        }
        
        @keyframes floatAd {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }
        
        .ad-placeholder {
            display: block;
            position: relative;
            text-decoration: none;
            color: inherit;
        }
        
        .ad-placeholder::before {
            content: "Sponsored";
            position: absolute;
            top: 12px;
            left: 12px;
            background-color: var(--instagram-white);
            color: var(--instagram-pink);
            font-size: 12px;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 5px;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
            animation: pulseTag 2s infinite;
            z-index: 2;
        }
        
        @keyframes pulseTag {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.85; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .ad-image {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.4s ease;
        }
        
        .ad-placeholder:hover .ad-image {
            animation: wiggle 0.4s ease;
            transform: scale(1.04);
        }
        
        @keyframes wiggle {
            0% { transform: rotate(0deg); }
            25% { transform: rotate(1.5deg); }
            50% { transform: rotate(-1.5deg); }
            75% { transform: rotate(1.5deg); }
            100% { transform: rotate(0deg); }
        }
        
        .note {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            margin-top: 15px;
            font-style: italic;
        }
        
        /* Result Section */
        .tools-result {
            width: 100%;
            margin-top: 60px;
        }
        
        .ig-result {
            margin-top: 30px;
            background: var(--instagram-white);
            border-radius: 20px;
            padding: 30px;
            color: var(--instagram-black);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            animation: fadeIn 0.5s ease-out;
        }
        
        /* Profile Header */
        .ig-profile-header {
            margin-bottom: 40px;
            position: relative;
            background: linear-gradient(to bottom, #f9fafb, #ffffff);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid #f1f5f9;
        }
        
        .profile-header-content {
            display: flex;
            align-items: center;
            gap: 30px;
            flex-wrap: wrap;
        }
        
        .profile-image-container {
            position: relative;
            flex-shrink: 0;
        }
        
        .profile-image {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--instagram-white);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
            background: linear-gradient(to bottom right, var(--instagram-blue), var(--instagram-pink));
            padding: 3px;
            min-height: 150px;
            min-width: 150px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 60px;
        }
        
        .profile-image:hover {
            transform: scale(1.03);
        }
        
        .view-profile-img {
            position: absolute;
            bottom: 5px;
            right: 5px;
            background-color: var(--instagram-blue);
            color: var(--instagram-white);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 15px rgba(88, 81, 219, 0.3);
            z-index: 5;
        }
        
        .view-profile-img:hover {
            transform: scale(1.1) rotate(15deg);
            background-color: #4A4AD1;
        }
        
        .profile-info {
            flex: 1;
            text-align: left;
            min-width: 250px;
        }
        
        .profile-info h3 {
            font-size: 24px;
            margin: 0 0 5px;
            font-weight: 700;
            color: #1e293b;
        }
        
        .profile-info h4 {
            font-size: 18px;
            margin: 0 0 15px;
            font-weight: 600;
            color: #475569;
        }
        
        .stats {
            display: flex;
            gap: 25px;
            margin: 15px 0;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: #1e293b;
        }
        
        .stat-label {
            font-size: 14px;
            color: #64748b;
            margin-top: 3px;
        }
        
        .profile-bio {
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
            text-align: left;
            color: #475569;
            line-height: 1.6;
        }
        
        .profile-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: var(--instagram-blue);
            text-decoration: none;
            font-weight: 500;
            margin-top: 10px;
            transition: all 0.3s;
        }
        
        .profile-link:hover {
            color: #4A4AD1;
            text-decoration: underline;
        }
        
        /* Tabs */
        .ig-tabs {
            display: flex;
            justify-content: center;
            margin: 30px 0;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .ig-tabs button {
            background: #f8fafc;
            color: #64748b;
            border: none;
            font-weight: 600;
            font-size: 15px;
            padding: 12px 24px;
            cursor: pointer;
            border-radius: 50px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .ig-tabs button i {
            font-size: 16px;
        }
        
        .ig-tabs button.active {
            background: linear-gradient(135deg, var(--instagram-blue), var(--instagram-pink));
            color: var(--instagram-white);
            box-shadow: 0 5px 15px rgba(88, 81, 219, 0.3);
            transform: translateY(-2px);
        }
        
        .ig-tabs button:hover:not(.active) {
            background: #f1f5f9;
            color: #334155;
            transform: translateY(-2px);
        }
        
        /* Tab Content */
        .tab-content {
            padding: 20px;
            text-align: center;
            color: #666;
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .no-result {
            border: 1px dashed #cbd5e1;
            padding: 30px 20px;
            margin-top: 30px;
            text-align: center;
            font-size: 16px;
            font-weight: 500;
            border-radius: 12px;
            color: #64748b;
            background: #f8fafc;
        }
        
        .no-result i {
            font-size: 48px;
            color: #cbd5e1;
            margin-bottom: 15px;
            display: block;
        }
        
        /* Private Account Message */
        .private-account-message {
            background-color: rgba(225, 48, 108, 0.1);
            color: var(--instagram-red);
            padding: 20px;
            border-radius: 12px;
            margin-top: 20px;
            text-align: center;
            font-weight: 500;
            border: 1px solid rgba(225, 48, 108, 0.2);
            animation: fadeIn 0.5s ease-out;
        }
        
        .private-account-message i {
            margin-right: 8px;
            font-size: 18px;
        }
        
        /* Posts Grid */
        .posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 25px;
        }
        
        .post-card {
            border-radius: 16px;
            overflow: hidden;
            background: var(--instagram-white);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
            transition: all 0.3s;
            border: 1px solid #f1f5f9;
            animation: slideUp 0.5s ease-out;
            animation-fill-mode: both;
        }
        
        .post-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .post-img-container {
            position: relative;
            overflow: hidden;
            aspect-ratio: 1 / 1;
        }
        
        .post-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s;
        }
        
        .post-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
            transition: opacity 0.3s ease;
            z-index: 3;
        }
        
        .post-img-container:hover .post-overlay {
            opacity: 1;
        }
        
        .post-img-container:hover .post-thumb {
            transform: scale(1.08);
        }
        
        .post-download-btn,
        .post-view-btn {
            background: var(--instagram-white);
            color: var(--instagram-pink);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 16px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .post-download-btn:hover,
        .post-view-btn:hover {
            transform: scale(1.1) translateY(-3px);
            box-shadow: 0 8px 20px rgba(88, 81, 219, 0.15);
        }
        
        .post-download-btn:hover {
            background: var(--instagram-blue);
            color: var(--instagram-white);
        }
        
        .post-view-btn {
            background: rgba(255, 255, 255, 0.9);
            color: var(--instagram-black);
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 20px;
        }
        
        .post-view-btn:hover {
            background: var(--instagram-white);
            transform: scale(1.1);
        }
        
        .post-meta {
            padding: 20px;
        }
        
        .post-stats,
        .reel-stats {
            background: linear-gradient(135deg, rgba(88, 81, 219, 0.15), rgba(225, 48, 108, 0.15));
            padding: 8px 12px;
            border-radius: 12px;
            border: 1px solid rgba(88, 81, 219, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .post-stats span,
        .reel-stats span {
            color: #1e293b;
            font-weight: 600;
            font-size: 13px;
        }
        
        .post-stats span i,
        .reel-stats span i {
            color: var(--instagram-pink);
            margin-right: 4px;
        }
        
        .post-stats {
            display: flex;
            gap: 15px;
            margin-bottom: 10px;
        }
        
        .post-stats span {
            font-size: 14px;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .post-stats span i {
            color: var(--instagram-pink);
        }
        
        .post-meta .caption {
            font-size: 15px;
            color: #334155;
            margin-bottom: 10px;
            line-height: 1.5;
            font-weight: 500;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .post-meta .time {
            font-size: 13px;
            color: #94a3b8;
            display: block;
            font-weight: 400;
        }
        
        .post-stats-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        /* Stories Container */
        .stories-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 25px;
        }
        
        .story-card {
            border-radius: 16px;
            overflow: hidden;
            background: var(--instagram-white);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s;
            border: 1px solid #f1f5f9;
        }
        
        .story-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }
        
        .story-img-container {
            position: relative;
            overflow: hidden;
            aspect-ratio: 9 / 16;
        }
        
        .story-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s;
        }
        
        .story-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: all 0.3s;
            gap: 15px;
            flex-direction: column;
        }
        
        .story-img-container:hover .story-overlay {
            opacity: 1;
        }
        
        .story-img-container:hover .story-thumb {
            transform: scale(1.05);
        }
        
        .story-download-btn,
        .story-view-btn {
            background: var(--instagram-white);
            color: #1e293b;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 16px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            padding: 0px;
        }
        
        .story-download-btn:hover,
        .story-view-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }
        
        .story-download-btn:hover {
            background: var(--instagram-purple);
            color: var(--instagram-white);
        }
        
        .story-view-btn:hover {
            background: #f8bbd0;
            color: var(--instagram-purple);
        }
        
        .story-meta {
            padding: 12px;
            text-align: center;
        }
        
        .story-meta .time {
            font-size: 13px;
            color: #94a3b8;
            font-weight: 400;
        }
        
        .story-stats-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(88, 81, 219, 0.1));
            padding: 6px 10px;
            border-radius: 8px;
            border: 1px solid rgba(225, 48, 108, 0.2);
        }
        
        .story-stats-row .time {
            color: #64748b;
            font-weight: 500;
        }
        
        /* Highlights Container */
        .highlights-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
            margin-top: 25px;
        }
        
        .highlight-card {
            border-radius: 16px;
            overflow: hidden;
            background: var(--instagram-white);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s;
            border: 1px solid #f1f5f9;
            cursor: pointer;
            padding: 15px 10px;
            text-align: center;
        }
        
        .highlight-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }
        
        .highlight-img-container {
            position: relative;
            overflow: hidden;
            aspect-ratio: 1 / 1;
            border-radius: 50%;
            width: 120px;
            height: 120px;
            margin: 0 auto 10px;
            border: 3px solid var(--instagram-red);
            background: linear-gradient(to bottom right, var(--instagram-blue), var(--instagram-pink));
            padding: 3px;
        }
        
        .highlight-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s;
            border-radius: 50%;
        }
        
        .highlight-meta {
            padding: 5px;
            text-align: center;
        }
        
        .highlight-title {
            font-size: 14px;
            color: #334155;
            font-weight: 600;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .highlight-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            opacity: 0;
            transition: opacity 0.3s;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .highlight-img-container:hover .highlight-overlay {
            opacity: 1;
        }
        
        .highlight-view-btn {
            background-color: var(--instagram-white);
            color: var(--instagram-blue);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .highlight-view-btn:hover {
            transform: scale(1.1);
        }
        
        /* Reels Grid */
        .reels-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 25px;
        }
        
        .reel-card {
            border-radius: 16px;
            overflow: hidden;
            background: var(--instagram-white);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
            transition: all 0.3s;
            border: 1px solid #f1f5f9;
        }
        
        .reel-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .reel-img-container {
            position: relative;
            overflow: hidden;
            aspect-ratio: 9 / 16;
        }
        
        .reel-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s;
        }
        
        .reel-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: all 0.3s;
            gap: 15px;
            flex-direction: column;
        }
        
        .reel-img-container:hover .reel-overlay {
            opacity: 1;
        }
        
        .reel-img-container:hover .reel-thumb {
            transform: scale(1.05);
        }
        
        .reel-download-btn,
        .reel-view-btn {
            background: var(--instagram-white);
            color: var(--instagram-blue);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 16px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .reel-download-btn:hover {
            background: var(--instagram-blue);
            color: var(--instagram-white);
        }
        
        .reel-view-btn:hover {
            background: var(--instagram-pink);
            color: var(--instagram-white);
        }
        
        .reel-meta {
            padding: 20px;
        }
        
        .reel-meta .caption {
            font-size: 15px;
            color: #334155;
            margin-bottom: 10px;
            line-height: 1.5;
            font-weight: 500;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .reel-stats,
        .post-stats {
            background: linear-gradient(135deg, rgba(88, 81, 219, 0.15), rgba(225, 48, 108, 0.15));
            padding: 8px 12px;
            border-radius: 12px;
            border: 1px solid rgba(88, 81, 219, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .reel-stats span,
        .post-stats span {
            color: #1e293b;
            font-weight: 600;
            font-size: 13px;
        }
        
        .reel-stats span i,
        .post-stats span i {
            color: var(--instagram-pink);
            margin-right: 4px;
        }
        
        .reel-stats {
            display: flex;
            gap: 15px;
            margin-bottom: 8px;
        }
        
        .reel-stats span {
            font-size: 13px;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .reel-stats span i {
            color: var(--instagram-purple);
        }
        
        .reel-meta .time {
            font-size: 13px;
            color: #94a3b8;
            display: block;
            font-weight: 400;
        }
        
        .reel-stats-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        /* Video Elements */
        .post-video,
        .story-video,
        .reel-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 2;
        }
        
        .post-fullscreen-btn,
        .story-fullscreen-btn,
        .reel-fullscreen-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.9);
            color: var(--instagram-black);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
            z-index: 4;
        }
        
        .post-fullscreen-btn:hover,
        .story-fullscreen-btn:hover,
        .reel-fullscreen-btn:hover {
            background: var(--instagram-white);
            transform: scale(1.1);
        }
        
        /* Media Type Indicators */
        .media-type-indicator {
            position: absolute;
            top: 8px;
            left: 8px;
            background-color: rgba(0, 0, 0, 0.8);
            color: var(--instagram-white);
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 11px;
            font-weight: bold;
            z-index: 5;
            display: flex;
            align-items: center;
            gap: 4px;
            pointer-events: none;
        }
        
        .video-indicator {
            background-color: rgba(220, 53, 69, 0.9);
        }
        
        .image-indicator {
            background-color: rgba(13, 110, 253, 0.9);
        }
        
        /* Modal Styles */
        .ipgv-profile-img-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .ipgv-profile-img-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .ipgv-modal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            cursor: pointer;
        }
        
        .ipgv-modal-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background-color: var(--instagram-white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            transform: scale(0.8);
            transition: transform 0.3s ease;
            z-index: 10001;
        }
        
        .ipgv-profile-img-modal.active .ipgv-modal-content {
            transform: scale(1);
        }
        
        .ipgv-modal-img {
            display: block;
            width: 100%;
            max-width: 500px;
            height: auto;
            max-height: 70vh;
            object-fit: contain;
        }
        
        .ipgv-modal-actions {
            display: flex;
            justify-content: center;
            padding: 20px;
            background-color: #f8f9fa;
        }
        
        .ipgv-modal-download-btn {
            background-color: var(--instagram-blue);
            color: var(--instagram-white);
            border: none;
            border-radius: 8px;
            padding: 12px 24px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .ipgv-modal-download-btn:hover {
            background-color: #4A4AD1;
            transform: translateY(-1px);
        }
        
        .ipgv-close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: rgba(0, 0, 0, 0.6);
            color: var(--instagram-white);
            border: none;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 10002;
        }
        
        .ipgv-close-modal:hover {
            background-color: rgba(0, 0, 0, 0.8);
            transform: scale(1.1);
        }
        
        body.ipgv-modal-open {
            overflow: hidden;
        }
        
        /* Fixed Reel Controls - Always Visible Play and Fullscreen */
        .reel-img-container .reel-overlay {
            opacity: 1;
        }
        
        .reel-img-container .reel-view-btn {
            opacity: 1;
            visibility: visible;
        }
        
        .reel-img-container .reel-fullscreen-btn {
            opacity: 1;
            visibility: visible;
            display: flex;
        }
        
        .reel-img-container:hover .reel-overlay {
            opacity: 1;
        }
        
        .reel-video.playing {
            display: block;
        }
        
        .reel-thumb.hidden {
            display: none;
        }
        
        /* Skeleton Loaders */
        @keyframes shimmer {
            0% { background-position: -1000px 0; }
            100% { background-position: 1000px 0; }
        }
        
        .skeleton-profile {
            width: 100%;
            animation: fadeIn 0.5s ease-out;
        }
        
        .skeleton-profile-header {
            display: flex;
            gap: 30px;
            padding: 30px;
            background: #f9fafb;
            border-radius: 16px;
            margin-bottom: 20px;
            border: 1px solid #f1f5f9;
        }
        
        .skeleton-avatar {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            flex-shrink: 0;
            border: 4px solid var(--instagram-white);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .skeleton-profile-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .skeleton-username {
            height: 28px;
            width: 180px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 6px;
        }
        
        .skeleton-fullname {
            height: 20px;
            width: 140px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 6px;
        }
        
        .skeleton-stats {
            display: flex;
            gap: 25px;
            margin-top: 10px;
        }
        
        .skeleton-stat {
            height: 40px;
            width: 60px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 6px;
        }
        
        .skeleton-bio {
            height: 60px;
            width: 100%;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 6px;
            margin-bottom: 30px;
        }
        
        .skeleton-tabs {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .skeleton-tab {
            height: 40px;
            width: 100px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 50px;
        }
        
        /* Posts Skeleton */
        .skeleton-posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }
        
        .skeleton-post {
            border-radius: 16px;
            overflow: hidden;
            background: var(--instagram-white);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
            border: 1px solid #f1f5f9;
        }
        
        .skeleton-post-img {
            aspect-ratio: 1 / 1;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
        }
        
        .skeleton-post-meta {
            padding: 20px;
        }
        
        .skeleton-post-stats {
            display: flex;
            gap: 15px;
            margin-bottom: 10px;
        }
        
        .skeleton-post-stat {
            height: 16px;
            width: 60px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
        }
        
        .skeleton-post-caption {
            height: 16px;
            width: 100%;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
            margin-bottom: 8px;
        }
        
        .skeleton-post-caption-short {
            height: 16px;
            width: 70%;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
            margin-bottom: 10px;
        }
        
        .skeleton-post-time {
            height: 14px;
            width: 80px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
        }
        
        /* Stories Skeleton */
        .skeleton-stories-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }
        
        .skeleton-story {
            border-radius: 16px;
            overflow: hidden;
            background: var(--instagram-white);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border: 1px solid #f1f5f9;
        }
        
        .skeleton-story-img {
            aspect-ratio: 9 / 16;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
        }
        
        .skeleton-story-meta {
            padding: 12px;
            text-align: center;
        }
        
        .skeleton-story-time {
            height: 14px;
            width: 80px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
            margin: 0 auto;
        }
        
        /* Highlights Skeleton */
        .skeleton-highlights-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
        }
        
        .skeleton-highlight {
            border-radius: 16px;
            overflow: hidden;
            background: var(--instagram-white);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border: 1px solid #f1f5f9;
            padding: 15px 10px;
            text-align: center;
        }
        
        .skeleton-highlight-img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            margin: 0 auto 10px;
            border: 3px solid var(--instagram-red);
        }
        
        .skeleton-highlight-title {
            height: 16px;
            width: 80px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
            margin: 0 auto;
        }
        
        /* Reels Skeleton */
        .skeleton-reels-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }
        
        .skeleton-reel {
            border-radius: 16px;
            overflow: hidden;
            background: var(--instagram-white);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
            border: 1px solid #f1f5f9;
        }
        
        .skeleton-reel-img {
            aspect-ratio: 9 / 16;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
        }
        
        .skeleton-reel-meta {
            padding: 20px;
        }
        
        .skeleton-reel-caption {
            height: 16px;
            width: 100%;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
            margin-bottom: 8px;
        }
        
        .skeleton-reel-caption-short {
            height: 16px;
            width: 70%;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
            margin-bottom: 10px;
        }
        
        .skeleton-reel-stats {
            display: flex;
            gap: 15px;
            margin-bottom: 8px;
        }
        
        .skeleton-reel-stat {
            height: 16px;
            width: 60px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
        }
        
        .skeleton-reel-time {
            height: 14px;
            width: 80px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
            border-radius: 4px;
        }
        
        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

.ad-space {
	margin-top: 20px;
	text-align: center;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	padding: 6px;
	background: linear-gradient(135deg, var(--instagram-purple), var(--instagram-blue) 35%, var(--instagram-pink) 70%, var(--instagram-orange));
	background-size: 300% 300%;
	animation: gradientBorder 6s ease infinite;
	display:none;
	
}

.ig-header h2 {
	font-size: 17px;
	margin: 15px 0 25px;
	line-height: 1.6;
	font-weight: 400;
	opacity: 0.9;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	color: white;
}
        
       @media (max-width: 992px) {
    .main-contain {
        padding: 15px;
    }

    .ig-tool-wrapper {
        padding: 30px;
        border-radius: 18px;
    }

    .ig-header h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .ig-header h2 {
        font-size: 16px;
        margin: 12px 0 20px;
    }

    .ig-input-area {
        padding: 20px 15px;
        border-radius: 14px;
        flex-direction: column;
        gap: 12px;
    }

    .ig-icon {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .ig-input-area input {
        padding: 12px 16px;
        font-size: 15px;
        min-width: unset;
        width: 100%;
    }

    .paste-btn,
    .view-btn {
        padding: 12px 18px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        margin-bottom: 0; /* Remove margin for stacked buttons */
    }

    .error-container {
        bottom: -50px;
        left: 15px;
        right: 15px;
    }

    .ig-profile-header {
        padding: 25px;
        margin-bottom: 30px;
    }

    .profile-header-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .profile-image-container {
        margin-bottom: 10px;
    }

    .profile-info {
        text-align: center;
        min-width: unset;
    }

    .profile-info h3 {
        font-size: 22px;
    }

    .profile-info h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .stats {
        justify-content: center;
        gap: 20px;
        margin: 12px 0;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 13px;
    }

    .profile-bio {
        margin-top: 20px;
        padding-top: 15px;
    }

    .ig-tabs {
        margin: 25px 0;
        gap: 10px;
    }

    .ig-tabs button {
        padding: 10px 20px;
        font-size: 14px;
        flex-grow: 1; /* Allow tabs to grow and fill space */
        max-width: fit-content; /* Adjust max-width */
    }

    .posts-grid,
    .reels-grid,
    .stories-container,
    .highlights-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .post-card,
    .reel-card,
    .story-card,
    .highlight-card {
        border-radius: 14px;
    }

    .post-meta,
    .reel-meta {
        padding: 18px;
    }

    .post-stats span,
    .reel-stats span {
        font-size: 12px;
    }

    .caption {
        font-size: 14px;
    }

    .time {
        font-size: 12px;
    }

    .media-type-indicator {
        font-size: 10px;
        padding: 3px 6px;
    }

    .ipgv-modal-img {
        max-width: 90vw;
        max-height: 60vh;
    }

    .ipgv-modal-download-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .ipgv-close-modal {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .ig-tool-wrapper {
        padding: 25px;
        border-radius: 16px;
    }

    .ig-header h1 {
        font-size: 28px;
    }

    .ig-header h2 {
        font-size: 15px;
        margin: 10px 0 18px;
    }

    .ig-input-area {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .ig-icon {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .ig-input-area input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .paste-btn,
    .view-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .error-container {
        bottom: -45px;
    }

    .ig-profile-header {
        padding: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        min-height: 120px;
        min-width: 120px;
    }

    .view-profile-img {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .profile-info h3 {
        font-size: 20px;
    }

    .profile-info h4 {
        font-size: 15px;
    }

    .stats {
        gap: 18px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 12px;
    }

    .profile-bio {
        font-size: 14px;
    }

    .ig-tabs {
        margin: 20px 0;
        flex-wrap: wrap;
    }

    .ig-tabs button {
        padding: 9px 18px;
        font-size: 13px;
    }

    .posts-grid,
    .reels-grid,
    .stories-container,
    .highlights-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }

    .post-meta,
    .reel-meta {
        padding: 15px;
    }

    .post-stats span,
    .reel-stats span {
        font-size: 11px;
    }

    .caption {
        font-size: 13px;
    }

    .time {
        font-size: 11px;
    }

    .highlight-img-container {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .main-contain {
        padding: 10px;
    }

    .ig-tool-wrapper {
        padding: 20px;
        border-radius: 14px;
    }

    .ig-header h1 {
        font-size: 24px;
    }

    .ig-header h2 {
        font-size: 14px;
        margin: 8px 0 15px;
    }

    .ig-input-area {
        padding: 15px 10px;
        border-radius: 10px;
    }

    .ig-icon {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .ig-input-area input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .paste-btn,
    .view-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .error-container {
        bottom: -40px;
        left: 10px;
        right: 10px;
    }

    .ig-profile-header {
        padding: 15px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        min-height: 100px;
        min-width: 100px;
    }

    .view-profile-img {
        width: 28px;
        height: 28px;
        font-size: 12px;
        bottom: 0px;
        right: 0px;
    }

    .profile-info h3 {
        font-size: 18px;
    }

    .profile-info h4 {
        font-size: 14px;
    }

    .stats {
        gap: 15px;
        margin: 10px 0;
    }

    .stat-value {
        font-size: 15px;
    }

    .stat-label {
        font-size: 11px;
    }

    .profile-bio {
        font-size: 13px;
        margin-top: 15px;
        padding-top: 10px;
    }

    .ig-tabs {
        margin: 15px 0;
        flex-direction: column; /* Stack tabs vertically on smaller screens */
        align-items: center;
    }

    .ig-tabs button {
        padding: 8px 15px;
        font-size: 12px;
        width: 80%; /* Make tabs take more width when stacked */
        max-width: 200px;
    }

    .posts-grid,
    .reels-grid,
    .stories-container,
    .highlights-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .post-card,
    .reel-card,
    .story-card,
    .highlight-card {
        border-radius: 12px;
    }

    .post-meta,
    .reel-meta {
        padding: 12px;
    }

    .post-stats span,
    .reel-stats span {
        font-size: 10px;
    }

    .caption {
        font-size: 12px;
    }

    .time {
        font-size: 10px;
    }

    .highlight-img-container {
        width: 80px;
        height: 80px;
    }

    .highlight-title {
        font-size: 13px;
    }

    .ipgv-modal-content {
        max-width: 95vw;
    }
    
    .ad-space {
        display: none; /* Hide ads on very small screens to save space */
    }
}

@media (max-width: 480px) {
    .ig-header h1 {
        font-size: 22px;
    }

    .ig-header h2 {
        font-size: 13px;
        margin: 6px 0 12px;
    }

    .ig-input-area {
        padding: 12px 8px;
    }

    .ig-input-area input {
        padding: 7px 10px;
        font-size: 12px;
    }

    .paste-btn,
    .view-btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .error-container {
        bottom: -35px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        min-height: 80px;
        min-width: 80px;
    }

    .view-profile-img {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .profile-info h3 {
        font-size: 16px;
    }

    .profile-info h4 {
        font-size: 13px;
    }

    .stats {
        gap: 10px;
        margin: 8px 0;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-label {
        font-size: 10px;
    }

    .profile-bio {
        font-size: 12px;
    }

    .ig-tabs button {
        padding: 7px 12px;
        font-size: 11px;
        width: 90%;
        max-width: 180px;
    }

    .posts-grid,
    .reels-grid,
    .stories-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .highlights-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .post-meta,
    .reel-meta {
        padding: 10px;
    }

    .post-stats span,
    .reel-stats span {
        font-size: 9px;
    }

    .caption {
        font-size: 11px;
    }

    .time {
        font-size: 9px;
    }

    .highlight-img-container {
        width: 70px;
        height: 70px;
    }

    .highlight-title {
        font-size: 12px;
    }

    .story-download-btn,
    .story-view-btn,
    .post-download-btn,
    .post-view-btn,
    .reel-download-btn,
    .reel-view-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .ig-header h1 {
        font-size: 20px;
    }

    .ig-header h2 {
        font-size: 12px;
        margin: 5px 0 10px;
    }

    .ig-input-area input {
        padding: 6px 8px;
        font-size: 11px;
    }

    .paste-btn,
    .view-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .profile-image {
        width: 70px;
        height: 70px;
        min-height: 70px;
        min-width: 70px;
    }

    .profile-info h3 {
        font-size: 15px;
    }

    .profile-info h4 {
        font-size: 12px;
    }

    .stat-value {
        font-size: 13px;
    }

    .stat-label {
        font-size: 9px;
    }

    .profile-bio {
        font-size: 11px;
    }

    .ig-tabs button {
        padding: 6px 10px;
        font-size: 10px;
        width: 100%;
        max-width: 160px;
    }

    .posts-grid,
    .reels-grid,
    .stories-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .highlights-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .post-meta,
    .reel-meta {
        padding: 8px;
    }

    .caption {
        font-size: 10px;
    }

    .time {
        font-size: 8px;
    }

    .highlight-img-container {
        width: 60px;
        height: 60px;
    }

    .highlight-title {
        font-size: 11px;
    }
    
    .story-download-btn,
    .story-view-btn,
    .post-download-btn,
    .post-view-btn,
    .reel-download-btn,
    .reel-view-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}