@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Poppins:wght@500;700&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Poppins:wght@500;700&display=swap');

        :root {
            --primary: #18122B;
            --secondary: #393053;
            --accent: #A678F8;
            --gold: #FFD700;
            --glass-bg: rgba(255, 255, 255, 0.13);
            --glass-blur: 32px;
            --shadow: 0 8px 32px rgba(30, 41, 59, 0.18);
            --radius: 28px;
            --input-bg: rgba(255, 255, 255, 0.22);
            --input-border: #A678F8;
            --input-focus: #FFD700;
            --highlight-border: linear-gradient(135deg, #A678F8, #FFD700 100%);
        }

        .ig-highlights-wrapper {
            font-family: 'Poppins', 'Inter', 'Segoe UI', Arial, sans-serif;
            min-height: 100vh;
            margin: 0;
            padding: 0;
            color: var(--primary);
            background: linear-gradient(120deg, #18122B 0%, #393053 100%);
            display: flex;
            flex-direction: column;
            background-attachment: fixed;
        }

        .ig-header-section {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18px;
            padding: 54px 0 18px 0;
        }

        .ig-logo-container {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #A678F8 0%, #FFD700 100%);
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 24px rgba(166, 120, 248, 0.18);
            border: 2.5px solid #fffbe6;
            animation: popIn 0.7s cubic-bezier(.4, 0, .2, 1);
        }

        .ig-logo-container i {
            color: #fff;
            font-size: 2.7rem;
            background: none;
            text-shadow: 0 2px 12px #A678F8;
        }

        .ig-main-title {
            font-size: 2.7rem;
            font-weight: 900;
            letter-spacing: -1px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ig-premium-badge {
            background: linear-gradient(90deg, var(--gold) 0%, #ffb300 100%);
            color: #23272f;
            font-size: 1.1rem;
            font-weight: 900;
            border-radius: 8px;
            padding: 3px 14px;
            margin-left: 10px;
            vertical-align: middle;
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.18);
            letter-spacing: 0.03em;
            border: 2px solid #fffbe6;
        }

        .ig-subtitle-text {
            text-align: center;
            color: #fff;
            font-size: 1.25rem;
            margin-bottom: 44px;
            font-weight: 600;
            text-shadow: none;
        }

        .ig-tool-container {
            background: var(--glass-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            max-width: 1320px;
            margin: 0 auto 44px auto;
            padding: 54px 44px 44px 44px;
            position: relative;
            backdrop-filter: blur(var(--glass-blur));
            border: 2.5px solid var(--accent);
            animation: fadeIn 0.8s cubic-bezier(.4, 0, .2, 1);
        }

        .ig-input-section {
            position: relative;
            margin-bottom: 32px;
            background: rgba(255, 255, 255, 0.18);
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(166, 120, 248, 0.10);
            padding: 14px;
            display: flex;
            align-items: center;
            border: 2px solid var(--accent);
            max-width: 100%;
            gap: 12px;
        }

        .ig-input-wrapper {
            display: flex;
            align-items: center;
            gap: 0;
            width: 100%;
            position: relative;
        }

        .ig-input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent);
            font-size: 1.3rem;
            pointer-events: none;
            z-index: 2;
        }

        .ig-input-section .ig-input-field {
            flex: 1;
            padding: 18px 18px 18px 50px;
            border-radius: 10px;
            border: none;
            font-size: 1.18rem;
            font-family: 'Poppins', 'Inter', Arial, sans-serif;
            font-weight: 600;
            outline: none;
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary);
            transition: all 0.2s ease;
            box-shadow: none;
            letter-spacing: 0.01em;
        }

        .ig-input-section .ig-input-field:focus {
            border: 2px solid var(--input-focus);
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
            background: rgba(255, 255, 255, 1);
        }

        .ig-input-section .ig-input-field::placeholder {
            color: #666;
            font-weight: 500;
        }

        .ig-input-section .ig-submit-btn {
            background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 0 30px;
            font-size: 1.13rem;
            font-family: 'Poppins', 'Inter', Arial, sans-serif;
            font-weight: 700;
            cursor: pointer;
            height: 62px;
            transition: all 0.18s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 2px 8px rgba(166, 120, 248, 0.15);
            position: relative;
            overflow: hidden;
            letter-spacing: 0.01em;
            text-shadow: none;
            white-space: nowrap;
            justify-content: center;
        }

        .ig-input-section .ig-submit-btn:after {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(120deg, #fffbe6 0%, transparent 100%);
            opacity: 0.18;
            pointer-events: none;
        }

        .ig-input-section .ig-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(166, 120, 248, 0.25);
        }

        .ig-input-section .ig-submit-btn:active {
            transform: scale(0.97);
        }

        .ig-input-section .ig-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        @keyframes popIn {
            0% {
                transform: scale(0.7);
                opacity: 0;
            }

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

        .ig-error-message {
            color: #e11d48;
            text-align: center;
            margin-bottom: 10px;
            display: none;
            font-weight: 700;
            letter-spacing: 0.01em;
        }

        .ig-loading-message {
            text-align: center;
            color: var(--accent);
            margin-top: 36px;
            font-size: 1.18rem;
            font-weight: 700;
        }

        .ig-highlights-section {
            margin-top: 24px;
        }

        .ig-highlights-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
            margin-top: 20px;
        }

      

        .ig-highlight-card {
            background: var(--glass-bg);
            border-radius: 24px;
            box-shadow: 0 8px 32px rgba(166, 120, 248, 0.15);
            padding: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            border: 2px solid transparent;
            animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
            cursor: pointer;
            min-height: 200px;
            backdrop-filter: blur(20px);
        }

        .ig-highlight-card:hover {
            box-shadow: 0 16px 48px rgba(166, 120, 248, 0.25);
            transform: translateY(-8px);
            border-color: var(--accent);
        }

        .ig-highlight-thumb {
            width: 180px;
            height: 180px;
            border-radius: 20px;
            object-fit: cover;
            border: 3px solid var(--accent);
            background: #f3f4f6;
            box-shadow: 0 8px 32px rgba(166, 120, 248, 0.15);
            transition: all 0.3s ease;
            margin-bottom: 16px;
            position: relative;
            cursor: pointer;
        }

        .ig-highlight-card:hover .ig-highlight-thumb {
            border-color: var(--gold);
            transform: scale(1.05);
            box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
        }

        .ig-highlight-thumb-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* background: rgba(0, 0, 0, 0.5); */
            border-radius: 17px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .ig-highlight-card:hover .ig-highlight-thumb-overlay {
            opacity: 1;
        }

        .ig-highlight-thumb-overlay i {
            color: white;
            font-size: 28px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }

        .ig-highlight-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        .ig-highlight-title {
            font-size: 1.2rem;
            color: #fff;
            font-weight: 800;
            margin-bottom: 12px;
            line-height: 1.3;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .ig-highlight-count {
            font-size: 1rem;
            color: var(--accent);
            margin-bottom: 0;
            display: block;
            font-weight: 700;
            background: rgba(166, 120, 248, 0.15);
            padding: 8px 16px;
            border-radius: 12px;
            border: 2px solid rgba(166, 120, 248, 0.3);
            backdrop-filter: blur(10px);
        }

        .ig-highlight-items {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 16px;
            justify-content: center;
            width: 100%;
        }

        .ig-highlight-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .ig-highlight-img-container {
            position: relative;
            cursor: pointer;
            border-radius: 12px;
            overflow: hidden;
        }

        .ig-highlight-img-container img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 12px;
            border: 2px solid var(--accent);
            transition: all 0.3s ease;
        }

        .ig-highlight-img-container:hover img {
            border-color: var(--gold);
            transform: scale(1.05);
        }

        .ig-highlight-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .ig-highlight-img-container:hover .ig-highlight-overlay {
            opacity: 1;
        }

        .ig-highlight-overlay i {
            color: white;
            font-size: 20px;
        }

        .ig-alt-download-btn {
            background: linear-gradient(90deg, #1e88e5 0%, #43a047 100%);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
        }

        .ig-alt-download-btn:hover {
            background: linear-gradient(90deg, #1565c0 0%, #388e3c 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
        }

        .ig-alt-download-btn:active {
            transform: scale(0.95);
        }

        /* Modal */
        .ig-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(30, 41, 59, 0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s;
        }

        .ig-modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .ig-modal-content {
            background: linear-gradient(120deg, #fffbe6 0%, #f8fafc 100%);
            border-radius: 24px;
            padding: 48px 38px 32px 38px;
            max-width: 98vw;
            box-shadow: 0 12px 48px rgba(255, 215, 0, 0.18);
            text-align: center;
            min-width: 320px;
            border: 3px solid var(--gold);
            animation: popIn 0.6s cubic-bezier(.4, 0, .2, 1);
            position: relative;
        }

        .ig-modal-close {
            position: absolute;
            top: 14px;
            right: 14px;
            background: #fff;
            color: var(--primary);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(30, 41, 59, 0.07);
            transition: background 0.18s, color 0.18s;
        }

        .ig-modal-close:hover {
            background: var(--accent);
            color: #fff;
        }

        .ig-modal-title {
            font-size: 1.13rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
            text-align: center;
        }

        .ig-modal-media {
            max-width: 90vw;
            max-height: 70vh;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            margin: 20px 0;
        }

        .ig-modal-download {
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 10px 28px;
            font-size: 1.08rem;
            font-weight: 700;
            cursor: pointer;
            margin-bottom: 8px;
            transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
            box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 auto;
        }

        .ig-modal-download:active {
            transform: scale(0.97);
        }

        .ig-modal-download:hover {
            background: var(--primary);
        }

        .ig-no-result {
            text-align: center;
            color: #fff;
            margin-top: 38px;
            font-size: 1.18rem;
            font-weight: 700;
            text-shadow: 0 1px 8px #A678F8;
        }
			
			        @media (max-width: 992px) {
            .ig-highlights-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }

            .ig-tool-container {
                padding: 40px 30px;
                margin: 0 20px 40px 20px;
            }

            .ig-header-section {
                padding: 40px 0 18px 0;
            }

            .ig-main-title {
                font-size: 2.3rem;
            }

            .ig-logo-container {
                width: 60px;
                height: 60px;
                border-radius: 18px;
            }

            .ig-logo-container i {
                font-size: 2.2rem;
            }

            .ig-premium-badge {
                font-size: 0.95rem;
                padding: 2px 10px;
            }

            .ig-subtitle-text {
                font-size: 1.1rem;
                margin-bottom: 32px;
            }

            .ig-input-section .ig-input-field {
                padding: 16px 16px 16px 45px;
                font-size: 1.1rem;
            }

            .ig-input-icon {
                left: 12px;
                font-size: 1.2rem;
            }

            .ig-input-section .ig-submit-btn {
                height: 58px;
                padding: 0 25px;
                font-size: 1.05rem;
            }

            .ig-highlight-card {
                padding: 20px;
                min-height: 180px;
            }

            .ig-highlight-thumb {
                width: 150px;
                height: 150px;
            }

            .ig-highlight-title {
                font-size: 1.1rem;
            }

            .ig-highlight-count {
                font-size: 0.9rem;
                padding: 6px 14px;
            }

            .ig-highlight-img-container img {
                width: 70px;
                height: 70px;
            }
								.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
        }

        @media (max-width: 768px) {
            .ig-highlights-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                max-width: 400px;
                margin-left: auto;
                margin-right: auto;
            }

            .ig-main-title {
                font-size: 2rem;
            }

            .ig-logo-container {
                width: 55px;
                height: 55px;
                border-radius: 16px;
            }

            .ig-logo-container i {
                font-size: 2rem;
            }

            .ig-premium-badge {
                font-size: 0.9rem;
                padding: 1px 8px;
            }

            .ig-subtitle-text {
                font-size: 1rem;
                margin-bottom: 28px;
            }

            .ig-tool-container {
                padding: 30px 25px;
                margin: 0 15px 30px 15px;
            }

            .ig-input-section {
                flex-direction: column;
                gap: 15px;
                padding: 12px;
            }

            .ig-input-wrapper {
                width: 100%;
            }

            .ig-input-section .ig-input-field {
                padding: 14px 14px 14px 40px;
                font-size: 1rem;
                height: auto;
            }

            .ig-input-icon {
                font-size: 1.1rem;
            }

            .ig-input-section .ig-submit-btn {
                width: 100%;
                height: 50px;
                font-size: 1rem;
                padding: 0 20px;
            }

            .ig-highlight-thumb {
                width: 130px;
                height: 130px;
            }

            .ig-highlight-card {
                padding: 18px;
            }

            .ig-modal-content {
                padding: 30px 20px 20px 20px;
                max-width: 95vw;
            }

            .ig-modal-media {
                margin: 15px 0;
            }

            .ig-modal-download {
                padding: 8px 20px;
                font-size: 1rem;
            }
					.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
					.ig-input-section .ig-input-field {
	padding: 12px 12px 12px 18px;
	font-size: 0.95rem;
	text-align: center;
}
        }

        @media (max-width: 600px) {
            .ig-main-title {
                font-size: 1.8rem;
                gap: 8px;
            }

            .ig-logo-container {
                width: 50px;
                height: 50px;
                border-radius: 14px;
            }

            .ig-logo-container i {
                font-size: 1.8rem;
            }

            .ig-premium-badge {
                font-size: 0.8rem;
                padding: 0 6px;
                margin-left: 5px;
            }

            .ig-subtitle-text {
                font-size: 0.9rem;
                margin-bottom: 24px;
            }

            .ig-tool-container {
                padding: 25px 20px;
                margin: 0 10px 25px 10px;
            }

            .ig-input-section .ig-input-field {
                padding: 12px 12px 12px 35px;
                font-size: 0.95rem;
            }

            .ig-input-icon {
                left: 10px;
                font-size: 1rem;
            }

            .ig-input-section .ig-submit-btn {
                height: 45px;
                font-size: 0.95rem;
                padding: 0 15px;
            }

            .ig-highlight-card {
                padding: 15px;
                min-height: 160px;
            }

            .ig-highlight-thumb {
                width: 110px;
                height: 110px;
                border-radius: 16px;
                margin-bottom: 12px;
            }

            .ig-highlight-thumb-overlay {
                border-radius: 13px;
            }

            .ig-highlight-thumb-overlay i {
                font-size: 24px;
            }

            .ig-highlight-title {
                font-size: 1rem;
                margin-bottom: 8px;
            }

            .ig-highlight-count {
                font-size: 0.85rem;
                padding: 5px 12px;
                border-radius: 10px;
            }

            .ig-highlight-items {
                gap: 10px;
            }

            .ig-highlight-img-container img {
                width: 60px;
                height: 60px;
                border-radius: 10px;
            }

            .ig-highlight-overlay {
                border-radius: 10px;
            }

            .ig-highlight-overlay i {
                font-size: 18px;
            }

            .ig-modal-content {
                padding: 25px 18px 18px 18px;
                border-radius: 20px;
            }

            .ig-modal-close {
                width: 32px;
                height: 32px;
                font-size: 1rem;
                top: 10px;
                right: 10px;
            }

            .ig-modal-title {
                font-size: 1rem;
            }

            .ig-modal-media {
                margin: 10px 0;
            }

            .ig-modal-download {
                padding: 6px 16px;
                font-size: 0.95rem;
            }
					.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
					.ig-header-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 54px 0 18px 0;
	flex-direction: column;
}
					.ig-input-section .ig-input-field {
	padding: 12px 12px 12px 18px;
	font-size: 0.95rem;
	text-align: center;
}
        }

        @media (max-width: 400px) {
            .ig-header-section {
                flex-direction: column;
                padding: 30px 0 15px 0;
            }

            .ig-main-title {
                font-size: 1.6rem;
                flex-wrap: wrap;
                justify-content: center;
                text-align: center;
            }

            .ig-logo-container {
                width: 45px;
                height: 45px;
                border-radius: 12px;
            }

            .ig-logo-container i {
                font-size: 1.6rem;
            }

            .ig-premium-badge {
                font-size: 0.75rem;
                margin-left: 0;
                margin-top: 5px;
                display: inline-block;
            }

            .ig-subtitle-text {
                font-size: 0.85rem;
                margin-bottom: 20px;
                padding: 0 10px;
            }

            .ig-tool-container {
                padding: 20px 15px;
                margin: 0 8px 20px 8px;
            }

            .ig-input-section {
                padding: 10px;
            }

            .ig-input-section .ig-input-field {
                padding: 10px 10px 10px 30px;
                font-size: 0.9rem;
            }

            .ig-input-icon {
                font-size: 0.9rem;
            }

            .ig-input-section .ig-submit-btn {
                height: 40px;
                font-size: 0.9rem;
            }

            .ig-highlight-card {
                padding: 12px;
                min-height: 140px;
            }

            .ig-highlight-thumb {
                width: 90px;
                height: 90px;
                border-radius: 14px;
                margin-bottom: 10px;
            }

            .ig-highlight-thumb-overlay {
                border-radius: 11px;
            }

            .ig-highlight-thumb-overlay i {
                font-size: 20px;
            }

            .ig-highlight-title {
                font-size: 0.95rem;
            }

            .ig-highlight-count {
                font-size: 0.8rem;
                padding: 4px 10px;
            }

            .ig-highlight-img-container img {
                width: 50px;
                height: 50px;
            }

            .ig-highlight-overlay i {
                font-size: 16px;
            }

            .ig-modal-content {
                padding: 20px 15px 15px 15px;
                border-radius: 18px;
            }

            .ig-modal-close {
                width: 28px;
                height: 28px;
                font-size: 0.9rem;
            }

            .ig-modal-title {
                font-size: 0.95rem;
            }

            .ig-modal-download {
                font-size: 0.9rem;
                padding: 5px 12px;
            }
					.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
					.ig-header-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 54px 0 18px 0;
	flex-direction: column;
}
					.ig-input-section .ig-input-field {
	padding: 12px 12px 12px 18px;
	font-size: 0.95rem;
	text-align: center;
}
        }

        @media (max-width: 375px) {
            .ig-main-title {
                font-size: 1.5rem;
            }

            .ig-subtitle-text {
                font-size: 0.8rem;
            }

            .ig-tool-container {
                padding: 18px 12px;
            }

            .ig-input-section .ig-input-field {
                font-size: 0.85rem;
            }

            .ig-input-section .ig-submit-btn {
                font-size: 0.85rem;
            }

            .ig-highlight-card {
                min-height: 130px;
            }

            .ig-highlight-thumb {
                width: 80px;
                height: 80px;
            }

            .ig-highlight-title {
                font-size: 0.9rem;
            }

            .ig-highlight-count {
                font-size: 0.75rem;
            }

            .ig-highlight-img-container img {
                width: 45px;
                height: 45px;
            }
					.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
        }

/* --- Codex CSS updates --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Poppins:wght@500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
    --primary: #161425;
    --secondary: #342a58;
    --accent: #8f5cf7;
    --gold: #f8c84e;
    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-blur: 26px;
    --shadow: 0 22px 70px rgba(16, 18, 38, 0.28);
    --radius: 24px;
    --input-bg: rgba(255, 255, 255, 0.96);
    --input-border: rgba(143, 92, 247, 0.42);
    --input-focus: #f8c84e;
    --highlight-border: linear-gradient(135deg, #8f5cf7, #f8c84e 100%);
}

.ig-highlights-wrapper {
    font-family: 'Poppins', 'Inter', 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0 16px 48px;
    color: var(--primary);
    background:
        radial-gradient(circle at 18% 12%, rgba(248, 200, 78, 0.24), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(143, 92, 247, 0.32), transparent 34%),
        linear-gradient(135deg, #151324 0%, #2c2450 52%, #17172d 100%);
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

.ig-highlights-wrapper *,
.ig-highlights-wrapper *::before,
.ig-highlights-wrapper *::after {
    box-sizing: border-box;
}

.ig-header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 46px 0 14px 0;
    text-align: center;
}

.ig-logo-container {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    background: linear-gradient(135deg, #f35fa8 0%, #8f5cf7 52%, #f8c84e 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 38px rgba(143, 92, 247, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.64);
    animation: popIn 0.7s cubic-bezier(.4, 0, .2, 1);
}

.ig-logo-container i {
    color: #fff;
    font-size: 2rem;
    background: none;
    text-shadow: 0 4px 16px rgba(22, 20, 37, 0.28);
}

.ig-main-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.18;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: capitalize !important;
    text-wrap: balance;
}

.ig-premium-badge {
    background: linear-gradient(90deg, var(--gold) 0%, #ffad42 100%);
    color: #211b31;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 12px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 8px 24px rgba(248, 200, 78, 0.26);
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.ig-subtitle-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.65;
    margin: 0 auto 34px;
    font-weight: 500;
    text-shadow: none;
    max-width: 780px;
    padding: 0 12px;
}

.ig-tool-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 44px auto;
    padding: 34px;
    position: relative;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.28);
    animation: fadeIn 0.8s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}

.ig-tool-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(143, 92, 247, 0.46), rgba(248, 200, 78, 0.36));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ig-input-section {
    position: relative;
    margin-bottom: 26px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 36px rgba(16, 18, 38, 0.16);
    padding: 12px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    max-width: 100%;
    gap: 12px;
}

.ig-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    position: relative;
    min-width: 0;
}

.ig-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.ig-input-section .ig-input-field {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    padding: 0 18px 0 50px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    font-size: 1rem;
    line-height: 56px;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    font-weight: 600;
    outline: none;
    background: var(--input-bg);
    color: var(--primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 24px rgba(16, 18, 38, 0.08);
    letter-spacing: 0;
    resize: none;
    overflow: hidden;
}

.ig-input-section .ig-input-field:focus {
    border: 1px solid var(--input-focus);
    box-shadow: 0 0 0 4px rgba(248, 200, 78, 0.22), 0 10px 26px rgba(143, 92, 247, 0.16);
    background: #fff;
}

.ig-input-section .ig-input-field::placeholder {
    color: #6b6479;
    font-weight: 500;
}

.ig-input-section .ig-submit-btn {
    background: linear-gradient(135deg, #8f5cf7 0%, #e65aa4 52%, #f8c84e 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0 28px;
    font-size: 1rem;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    font-weight: 800;
    cursor: pointer;
    height: 56px;
    min-height: 56px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 14px 30px rgba(143, 92, 247, 0.28);
    position: relative;
    overflow: hidden;
    letter-spacing: 0;
    text-shadow: none;
    white-space: nowrap;
    justify-content: center;
    flex: 0 0 auto;
}

.ig-input-section .ig-submit-btn:after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    right: auto;
    bottom: 0;
    width: 42%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.42) 50%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transform: skewX(-18deg);
    transition: left 0.42s ease, opacity 0.2s ease;
}

.ig-input-section .ig-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(143, 92, 247, 0.34);
    filter: saturate(1.08);
}

.ig-input-section .ig-submit-btn:hover:after {
    left: 105%;
    opacity: 0.9;
}

.ig-input-section .ig-submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(248, 200, 78, 0.3), 0 18px 38px rgba(143, 92, 247, 0.34);
}

.ig-input-section .ig-submit-btn:active {
    transform: scale(0.98);
}

.ig-input-section .ig-submit-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.82);
        opacity: 0;
    }

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

.ig-error-message {
    color: #ffd6df;
    text-align: center;
    margin: 0 0 14px;
    display: none;
    font-weight: 700;
    letter-spacing: 0;
    background: rgba(225, 29, 72, 0.18);
    border: 1px solid rgba(255, 214, 223, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
}

.ig-loading-message {
    text-align: center;
    color: #fff4c7;
    margin-top: 28px;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(248, 200, 78, 0.12);
    border: 1px solid rgba(248, 200, 78, 0.28);
    border-radius: 14px;
    padding: 14px 16px;
}

.ig-highlights-section {
    margin-top: 24px;
}

.ig-results {
    width: 100%;
    min-height: 0;
}

.ig-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.ig-highlight-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    box-shadow: 0 14px 44px rgba(16, 18, 38, 0.2);
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.22);
    animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    min-height: 200px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ig-highlight-card:hover {
    box-shadow: 0 20px 56px rgba(143, 92, 247, 0.28);
    transform: translateY(-6px);
    border-color: rgba(248, 200, 78, 0.58);
}

.ig-highlight-thumb {
    width: 168px;
    height: 168px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.58);
    background: #f5f2ff;
    box-shadow: 0 12px 34px rgba(16, 18, 38, 0.22);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
}

.ig-highlight-card:hover .ig-highlight-thumb {
    border-color: var(--gold);
    transform: scale(1.035);
    box-shadow: 0 16px 42px rgba(248, 200, 78, 0.2);
}

.ig-highlight-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ig-highlight-card:hover .ig-highlight-thumb-overlay {
    opacity: 1;
}

.ig-highlight-thumb-overlay i {
    color: white;
    font-size: 26px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ig-highlight-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.ig-highlight-title {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.ig-highlight-count {
    font-size: 0.92rem;
    color: #fff4c7;
    margin-bottom: 0;
    display: block;
    font-weight: 700;
    background: rgba(248, 200, 78, 0.12);
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(248, 200, 78, 0.28);
    backdrop-filter: blur(10px);
}

.ig-highlight-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
    width: 100%;
}

.ig-highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ig-highlight-img-container {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.ig-highlight-img-container img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.56);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.ig-highlight-img-container:hover img {
    border-color: var(--gold);
    transform: scale(1.04);
}

.ig-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 20, 37, 0.48);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.ig-highlight-img-container:hover .ig-highlight-overlay {
    opacity: 1;
}

.ig-highlight-overlay i {
    color: white;
    font-size: 19px;
}

.ig-alt-download-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    box-shadow: 0 10px 24px rgba(30, 136, 229, 0.26);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.ig-alt-download-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(30, 136, 229, 0.34);
    filter: saturate(1.08);
}

.ig-alt-download-btn:active {
    transform: scale(0.97);
}

.ig-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 12, 26, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
    padding: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ig-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ig-modal-content {
    background: linear-gradient(145deg, #fff 0%, #f8f5ff 58%, #fff7df 100%);
    border-radius: 22px;
    padding: 44px 34px 30px 34px;
    max-width: 98vw;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 320px;
    border: 1px solid rgba(248, 200, 78, 0.56);
    animation: popIn 0.6s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

.ig-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(22, 20, 37, 0.1);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(16, 18, 38, 0.12);
    transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.ig-modal-close:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(143, 92, 247, 0.26);
}

.ig-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.ig-modal-media {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
    margin: 20px 0;
}

.ig-modal-download {
    background: linear-gradient(135deg, #8f5cf7 0%, #e65aa4 58%, #f8c84e 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 24px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 8px;
    transition: box-shadow 0.18s, transform 0.12s, filter 0.18s;
    box-shadow: 0 12px 28px rgba(143, 92, 247, 0.26);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.ig-modal-download:active {
    transform: scale(0.98);
}

.ig-modal-download:hover {
    filter: saturate(1.08);
    box-shadow: 0 16px 34px rgba(143, 92, 247, 0.32);
}

.ig-no-result {
    text-align: center;
    color: #fff;
    margin-top: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
}

.fa-brands {
    display: inline-block;
    font-style: normal;
    line-height: 1;
    text-rendering: auto;
}

.fa-solid {
    display: inline-block;
    font-style: normal;
    line-height: 1;
    text-rendering: auto;
}

.fa-instagram {
    display: inline-block;
}

.fa-eye {
    display: inline-block;
}

.fa-spinner {
    display: inline-block;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

.fa-xmark {
    display: inline-block;
}

.fa-download {
    display: inline-block;
}

.fa-expand {
    display: inline-block;
}

.fa-photo-film {
    display: inline-block;
}

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

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

@media (max-width: 992px) {
    .ig-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .ig-tool-container {
        padding: 30px 24px;
        margin: 0 auto 38px auto;
    }

    .ig-header-section {
        padding: 38px 0 14px 0;
    }

    .ig-main-title {
        font-size: clamp(1.65rem, 3.8vw, 2.1rem);
    }

    .ig-logo-container {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 16px;
    }

    .ig-logo-container i {
        font-size: 1.9rem;
    }

    .ig-premium-badge {
        font-size: 0.85rem;
        padding: 4px 10px;
    }

    .ig-subtitle-text {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .ig-input-section .ig-input-field {
        height: 54px;
        min-height: 54px;
        max-height: 54px;
        padding: 0 16px 0 46px;
        font-size: 0.98rem;
        line-height: 54px;
    }

    .ig-input-icon {
        left: 15px;
        font-size: 1.08rem;
    }

    .ig-input-section .ig-submit-btn {
        height: 54px;
        min-height: 54px;
        padding: 0 22px;
        font-size: 0.98rem;
    }

    .ig-highlight-card {
        padding: 20px;
        min-height: 180px;
    }

    .ig-highlight-thumb {
        width: 148px;
        height: 148px;
    }

    .ig-highlight-title {
        font-size: 1rem;
    }

    .ig-highlight-count {
        font-size: 0.88rem;
        padding: 6px 13px;
    }

    .ig-highlight-img-container img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .ig-highlights-wrapper {
        padding: 0 12px 36px;
    }

    .ig-highlights-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .ig-header-section {
        flex-direction: column;
        gap: 12px;
        padding: 32px 0 12px 0;
    }

    .ig-main-title {
        font-size: 1.8rem;
        justify-content: center;
        text-align: center;
    }

    .ig-logo-container {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 15px;
        margin-top: 0;
    }

    .ig-logo-container i {
        font-size: 1.75rem;
    }

    .ig-premium-badge {
        font-size: 0.82rem;
        padding: 3px 9px;
    }

    .ig-subtitle-text {
        font-size: 0.96rem;
        margin-bottom: 24px;
    }

    .ig-tool-container {
        padding: 22px;
        margin: 0 auto 30px auto;
        border-radius: 20px;
    }

    .ig-input-section {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        align-items: stretch;
    }

    .ig-input-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .ig-input-section .ig-input-field {
        width: 100%;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding: 0 14px 0 44px;
        font-size: 0.96rem;
        line-height: 52px;
        text-align: left;
    }

    .ig-input-icon {
        left: 15px;
        font-size: 1rem;
    }

    .ig-input-section .ig-submit-btn {
        width: 100%;
        height: 52px;
        min-height: 52px;
        font-size: 0.96rem;
        padding: 0 18px;
    }

    .ig-highlight-thumb {
        width: 128px;
        height: 128px;
    }

    .ig-highlight-card {
        padding: 18px;
    }

    .ig-modal-content {
        padding: 34px 20px 22px 20px;
        max-width: 95vw;
        min-width: 0;
        width: min(95vw, 520px);
    }

    .ig-modal-media {
        margin: 15px 0;
    }

    .ig-modal-download {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
        font-size: 0.96rem;
    }
}

@media (max-width: 600px) {
    .ig-main-title {
        font-size: 1.65rem;
        gap: 8px;
        flex-wrap: wrap;
    }

    .ig-logo-container {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
    }

    .ig-logo-container i {
        font-size: 1.65rem;
    }

    .ig-premium-badge {
        font-size: 0.78rem;
        padding: 3px 8px;
        margin-left: 5px;
    }

    .ig-subtitle-text {
        font-size: 0.92rem;
        margin-bottom: 22px;
        line-height: 1.55;
    }

    .ig-tool-container {
        padding: 18px;
        margin: 0 auto 24px auto;
    }

    .ig-input-section .ig-input-field {
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        padding: 0 14px 0 42px;
        font-size: 0.94rem;
        line-height: 50px;
    }

    .ig-input-icon {
        left: 14px;
        font-size: 0.96rem;
    }

    .ig-input-section .ig-submit-btn {
        height: 50px;
        min-height: 50px;
        font-size: 0.94rem;
        padding: 0 15px;
    }

    .ig-highlight-card {
        padding: 15px;
        min-height: 160px;
        border-radius: 18px;
    }

    .ig-highlight-thumb {
        width: 110px;
        height: 110px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .ig-highlight-thumb-overlay {
        border-radius: 13px;
    }

    .ig-highlight-thumb-overlay i {
        font-size: 23px;
    }

    .ig-highlight-title {
        font-size: 0.98rem;
        margin-bottom: 8px;
    }

    .ig-highlight-count {
        font-size: 0.84rem;
        padding: 5px 12px;
        border-radius: 999px;
    }

    .ig-highlight-items {
        gap: 10px;
    }

    .ig-highlight-img-container img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .ig-highlight-overlay {
        border-radius: 10px;
    }

    .ig-highlight-overlay i {
        font-size: 18px;
    }

    .ig-modal-content {
        padding: 30px 18px 18px 18px;
        border-radius: 20px;
    }

    .ig-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }

    .ig-modal-title {
        font-size: 1rem;
    }

    .ig-modal-media {
        margin: 10px 0;
    }

    .ig-modal-download {
        padding: 10px 16px;
        font-size: 0.94rem;
    }
}

@media (max-width: 400px) {
    .ig-highlights-wrapper {
        padding: 0 10px 30px;
    }

    .ig-header-section {
        flex-direction: column;
        padding: 28px 0 12px 0;
    }

    .ig-main-title {
        font-size: 1.48rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .ig-logo-container {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
        margin-top: 0;
    }

    .ig-logo-container i {
        font-size: 1.5rem;
    }

    .ig-premium-badge {
        font-size: 0.72rem;
        margin-left: 0;
        margin-top: 5px;
        display: inline-block;
    }

    .ig-subtitle-text {
        font-size: 0.86rem;
        margin-bottom: 18px;
        padding: 0 4px;
    }

    .ig-tool-container {
        padding: 14px;
        margin: 0 auto 20px auto;
        border-radius: 18px;
    }

    .ig-input-section {
        padding: 10px;
        border-radius: 16px;
    }

    .ig-input-section .ig-input-field {
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        padding: 0 12px 0 40px;
        font-size: 0.9rem;
        line-height: 48px;
    }

    .ig-input-icon {
        left: 13px;
        font-size: 0.9rem;
    }

    .ig-input-section .ig-submit-btn {
        height: 48px;
        min-height: 48px;
        font-size: 0.9rem;
    }

    .ig-highlight-card {
        padding: 12px;
        min-height: 140px;
    }

    .ig-highlight-thumb {
        width: 92px;
        height: 92px;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .ig-highlight-thumb-overlay {
        border-radius: 11px;
    }

    .ig-highlight-thumb-overlay i {
        font-size: 20px;
    }

    .ig-highlight-title {
        font-size: 0.92rem;
    }

    .ig-highlight-count {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .ig-highlight-img-container img {
        width: 50px;
        height: 50px;
    }

    .ig-highlight-overlay i {
        font-size: 16px;
    }

    .ig-modal-content {
        padding: 28px 15px 15px 15px;
        border-radius: 18px;
    }

    .ig-modal-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .ig-modal-title {
        font-size: 0.95rem;
    }

    .ig-modal-download {
        font-size: 0.9rem;
        padding: 9px 12px;
    }
}

@media (max-width: 375px) {
    .ig-main-title {
        font-size: 1.4rem;
    }

    .ig-subtitle-text {
        font-size: 0.82rem;
    }

    .ig-tool-container {
        padding: 12px;
    }

    .ig-input-section .ig-input-field {
        font-size: 0.86rem;
    }

    .ig-input-section .ig-submit-btn {
        font-size: 0.86rem;
    }

    .ig-highlight-card {
        min-height: 130px;
    }

    .ig-highlight-thumb {
        width: 82px;
        height: 82px;
    }

    .ig-highlight-title {
        font-size: 0.88rem;
    }

    .ig-highlight-count {
        font-size: 0.75rem;
    }

    .ig-highlight-img-container img {
        width: 45px;
        height: 45px;
    }

    .ig-logo-container {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
        margin-top: 0;
    }
}