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

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

        :root {
            --primary-color: #ff0050;
            --primary-light: #ff4081;
            --secondary-color: #9c27b0;
            --tertiary-color: #673ab7;
            --quaternary-color: #3f51b5;
            --text-dark: #2d3748;
            --text-light: #718096;
            --white: #ffffff;
            --white-transparent: rgba(255, 255, 255, 0.95);
            --shadow-light: rgba(0, 0, 0, 0.05);
            --shadow-medium: rgba(0, 0, 0, 0.1);
            --shadow-heavy: rgba(0, 0, 0, 0.15);
            --border-light: #e2e8f0;
            --border-hover: rgba(255, 0, 80, 0.2);
            --success-bg: #c6f6d5;
            --success-color: #2f855a;
            --error-bg: #fed7d7;
            --error-color: #c53030;
        }

        .tiktok_body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 25%, var(--secondary-color) 50%, var(--tertiary-color) 75%, var(--quaternary-color) 100%);
            background-attachment: fixed;
           padding:20px;
            color: var(--text-dark);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
					 min-height:60vh;
        }

        .container_tiktok {
            max-width: min(1400px, 95vw);
            margin: 0 auto;
            padding: clamp(15px, 3vw, 30px);
        }

        .header {
            text-align: center;
            margin-bottom: clamp(30px, 5vw, 50px);
        }

        .logo {
            font-size: clamp(2rem, 6vw, 3.5rem);
            font-weight: 800;
            color: var(--white);
            margin-bottom: clamp(10px, 2vw, 15px);
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(8px, 2vw, 15px);
            flex-wrap: wrap;
        }

        .logo-icon {
            font-size: clamp(2.5rem, 7vw, 4rem);
            animation: followerBounce 2s ease-in-out infinite;
            flex-shrink: 0;
        }

        @keyframes followerBounce {

            0%,
            20%,
            50%,
            80%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            40% {
                transform: translateY(-10px) rotate(-5deg);
            }

            60% {
                transform: translateY(-5px) rotate(5deg);
            }
        }

        .subtitle {
            font-size: clamp(0.9rem, 2.5vw, 1.2rem);
            color: rgba(255, 255, 255, 0.95);
            font-weight: 400;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            max-width: 600px;
            margin: 0 auto;
        }

        .search-section {
            background: var(--white-transparent);
            border-radius: clamp(15px, 3vw, 25px);
            padding: clamp(25px, 5vw, 45px);
            margin-bottom: clamp(25px, 4vw, 40px);
            box-shadow: 0 25px 80px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .input-group {
            display: flex;
            gap: clamp(10px, 2vw, 20px);
            margin-bottom: clamp(20px, 3vw, 30px);
            flex-wrap: wrap;
            align-items: center;
            width: 100%;
        }

        .input-field {
            flex: 1 !important;
            min-width: min(300px, 100%) !important;
            padding: clamp(12px, 2.5vw, 18px) clamp(16px, 3vw, 28px) !important;
            border: 2px solid var(--border-light) !important;
            border-radius: clamp(10px, 2vw, 15px) !important;
            font-size: clamp(14px, 2.5vw, 16px) !important;
            outline: none !important;
            background: var(--white) !important;
            transition: all 0.3s ease !important;
            font-weight: 500 !important;
            box-shadow: 0 4px 15px var(--shadow-light) !important;
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            appearance: none !important;
            width: 100% !important;
        }

        .input-field:focus {
            border-color: var(--primary-color) !important;
            background: var(--white) !important;
            box-shadow: none !important;
            transform: translateY(-2px) !important;
            outline: none !important;
        }

        .btn {
            padding: clamp(12px, 2.5vw, 18px) clamp(20px, 4vw, 35px);
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: var(--white);
            border: none;
            border-radius: clamp(10px, 2vw, 15px);
            font-size: clamp(14px, 2.5vw, 16px);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: min(200px, 100%);
            width: 100%;
            box-shadow: 0 8px 25px rgba(255, 0, 80, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            white-space: nowrap;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 52px;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 0, 80, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
        }

        .btn:active {
            transform: translateY(-1px);
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .loading {
            display: none;
            text-align: center;
            padding: clamp(20px, 4vw, 30px);
            color: var(--primary-color);
        }

        .spinner {
            width: clamp(40px, 8vw, 60px);
            height: clamp(40px, 8vw, 60px);
            border: 5px solid rgba(255, 0, 80, 0.1);
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto clamp(15px, 3vw, 20px);
            box-shadow: 0 0 20px rgba(255, 0, 80, 0.2);
        }

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

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

        .loading-text {
            font-size: clamp(0.9rem, 2.5vw, 1.1rem);
            font-weight: 600;
        }

        .profile-section {
            display: none;
            background: var(--white-transparent);
            border-radius: clamp(15px, 3vw, 25px);
            padding: clamp(25px, 5vw, 45px);
            margin-bottom: clamp(25px, 4vw, 40px);
            box-shadow: 0 25px 80px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .profile-header {
            display: flex;
            align-items: center;
            gap: clamp(15px, 3vw, 30px);
            margin-bottom: clamp(20px, 4vw, 35px);
            flex-wrap: wrap;
        }

        .profile-avatar {
            width: clamp(80px, 15vw, 120px);
            height: clamp(80px, 15vw, 120px);
            border-radius: 50%;
            border: 5px solid var(--primary-color);
            box-shadow: 0 0 30px rgba(255, 0, 80, 0.3), 0 10px 30px var(--shadow-medium);
            object-fit: cover;
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }

        .profile-avatar:hover {
            transform: scale(1.05);
        }

        .profile-info {
            flex: 1;
            min-width: 0;
        }

        .profile-info h2 {
            color: var(--text-dark);
            margin-bottom: clamp(5px, 1vw, 8px);
            font-size: clamp(1.5rem, 4vw, 2.2rem);
            font-weight: 800;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .profile-info p {
            color: var(--text-light);
            margin-bottom: clamp(5px, 1vw, 8px);
            font-weight: 500;
            font-size: clamp(0.9rem, 2.5vw, 1.1rem);
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
            gap: clamp(15px, 3vw, 25px);
            margin-top: clamp(20px, 4vw, 35px);
        }

        .stat-card {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: var(--white);
            padding: clamp(20px, 4vw, 30px);
            border-radius: clamp(12px, 2.5vw, 20px);
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 15px 40px rgba(255, 0, 80, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s;
        }

        .stat-card:hover::before {
            left: 100%;
        }

        .stat-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 25px 60px rgba(255, 0, 80, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
        }

        .stat-number {
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            font-weight: 900;
            display: block;
            margin-bottom: clamp(5px, 1vw, 8px);
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .stat-label {
            font-size: clamp(0.8rem, 2vw, 1rem);
            opacity: 0.95;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .followers-section {
            display: none;
            background: var(--white-transparent);
            border-radius: clamp(15px, 3vw, 25px);
            padding: clamp(25px, 5vw, 45px);
            box-shadow: 0 25px 80px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .section-title {
            font-size: clamp(1.5rem, 4vw, 2.2rem);
            color: var(--text-dark);
            margin-bottom: clamp(20px, 4vw, 35px);
            text-align: center;
            font-weight: 800;
        }

        .followers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
            gap: clamp(10px, 2vw, 15px);
            margin-top: clamp(15px, 3vw, 25px);
        }

        .follower-card {
            background: var(--white);
            border: 1px solid #f1f5f9;
            border-radius: clamp(10px, 2vw, 15px);
            padding: clamp(10px, 2vw, 15px);
            box-shadow: 0 5px 15px var(--shadow-light), 0 0 0 1px rgba(255, 255, 255, 0.5);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            animation: tikTokSlideIn 0.6s ease-out;
        }

        @keyframes tikTokSlideIn {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .follower-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
        }

        .follower-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px var(--shadow-medium), 0 0 0 1px rgba(255, 0, 80, 0.1);
            border-color: var(--border-hover);
        }

        .follower-header {
            display: flex;
            align-items: center;
            gap: clamp(8px, 1.5vw, 10px);
            margin-bottom: clamp(8px, 1.5vw, 12px);
        }

        .follower-avatar {
            width: clamp(30px, 6vw, 40px);
            height: clamp(30px, 6vw, 40px);
            border-radius: 50%;
            border: 2px solid var(--primary-color);
            object-fit: cover;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(255, 0, 80, 0.15);
            flex-shrink: 0;
        }

        .follower-card:hover .follower-avatar {
            transform: scale(1.1);
            border-color: var(--primary-light);
            box-shadow: 0 5px 15px rgba(255, 0, 80, 0.25);
        }

        .follower-info {
            flex: 1;
            min-width: 0;
        }

        .follower-name {
            color: var(--text-dark);
            font-size: clamp(0.7rem, 2vw, 0.9rem);
            margin-bottom: 2px;
            font-weight: 700;
            line-height: 1.2;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .follower-username {
            color: var(--text-light);
            font-size: clamp(0.6rem, 1.8vw, 0.75rem);
            font-weight: 500;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .follower-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: clamp(5px, 1vw, 8px);
            padding-top: clamp(8px, 1.5vw, 10px);
            border-top: 1px solid #f1f5f9;
        }

        .follower-stat {
            text-align: center;
            padding: clamp(4px, 1vw, 6px) clamp(3px, 0.8vw, 4px);
            background: #f8fafc;
            border-radius: clamp(5px, 1.5vw, 8px);
            transition: all 0.3s ease;
        }

        .follower-stat:hover {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 0, 80, 0.15);
        }

        .follower-stat-number {
            font-weight: 700;
            color: var(--primary-color);
            display: block;
            font-size: clamp(0.6rem, 1.8vw, 0.8rem);
            line-height: 1;
            margin-bottom: clamp(2px, 0.5vw, 3px);
            transition: color 0.3s ease;
        }

        .follower-stat:hover .follower-stat-number {
            color: var(--white);
        }

        .follower-stat-label {
            font-size: clamp(0.5rem, 1.5vw, 0.6rem);
            color: var(--text-light);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: color 0.3s ease;
        }

        .follower-stat:hover .follower-stat-label {
            color: rgba(255, 255, 255, 0.9);
        }

        .verified-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: clamp(10px, 2.5vw, 14px);
            height: clamp(10px, 2.5vw, 14px);
            background: linear-gradient(135deg, #1da1f2 0%, #0d8ecf 100%);
            border-radius: 50%;
            margin-left: clamp(3px, 1vw, 5px);
            color: var(--white);
            font-size: clamp(6px, 1.5vw, 8px);
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(29, 161, 242, 0.3);
            flex-shrink: 0;
        }

        .error-message {
            background: linear-gradient(135deg, var(--error-bg) 0%, #feb2b2 100%);
            color: var(--error-color);
            padding: clamp(12px, 2.5vw, 18px);
            border-radius: clamp(10px, 2vw, 15px);
            margin: clamp(15px, 3vw, 20px) 0;
            border-left: 5px solid #e53e3e;
            display: none;
            font-weight: 600;
            box-shadow: 0 8px 25px rgba(197, 48, 48, 0.1);
        }

        .success-message {
            background: linear-gradient(135deg, var(--success-bg) 0%, #9ae6b4 100%);
            color: var(--success-color);
            padding: clamp(12px, 2.5vw, 18px);
            border-radius: clamp(10px, 2vw, 15px);
            margin: clamp(15px, 3vw, 20px) 0;
            border-left: 5px solid #38a169;
            display: none;
            font-weight: 600;
            box-shadow: 0 8px 25px rgba(47, 133, 90, 0.1);
        }

        .empty-state {
            text-align: center;
            padding: clamp(50px, 10vw, 80px) clamp(15px, 3vw, 20px);
            color: var(--text-light);
        }

        .empty-state-icon {
            font-size: clamp(3rem, 8vw, 5rem);
            margin-bottom: clamp(15px, 3vw, 25px);
            opacity: 0.6;
            animation: followerBounce 2s ease-in-out infinite;
        }

        .empty-state-text {
            font-size: clamp(0.9rem, 2.5vw, 1.2rem);
            font-weight: 600;
        }

        .floating-hearts {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .heart {
            position: absolute;
            color: var(--primary-color);
            font-size: clamp(12px, 3vw, 20px);
            animation: floatHeart 4s ease-in-out infinite;
            opacity: 0;
            pointer-events: none;
        }
			.search-section {
	background: var(--white-transparent);
	border-radius: clamp(15px, 3vw, 25px);
	padding: clamp(25px, 5vw, 45px) !important;
	margin-bottom: clamp(25px, 4vw, 40px) !important;
	box-shadow: 0 25px 80px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

        @keyframes floatHeart {
            0% {
                opacity: 0;
                transform: translateY(100vh) scale(0);
            }

            10% {
                opacity: 1;
                transform: translateY(90vh) scale(1);
            }

            90% {
                opacity: 1;
                transform: translateY(10vh) scale(1);
            }

            100% {
                opacity: 0;
                transform: translateY(0vh) scale(0);
            }
        }

        /* Extra Small Devices (phones, 320px and down) */
        @media (max-width: 320px) {
            .container {
                padding: 10px;
            }

            .logo {
                font-size: 1.8rem;
                flex-direction: column;
            }

            .logo-icon {
                font-size: 2rem;
            }

            .input-group {
                flex-direction: column;
                gap: 10px;
                width: 100%;
            }

            .input-field {
                width: 100%;
                min-width: 100%;
                flex: none;
            }

            .btn {
                width: 100%;
                min-width: 100%;
                flex: none;
            }

            .profile-header {
                flex-direction: column;
                text-align: center;
            }

            .stats-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .followers-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .follower-stats {
                grid-template-columns: 1fr;
            }
					.followers-grid {
	grid-template-columns: repeat(1, 1fr) !important;
	gap: 10px !important;
}
					.stats-grid {
	grid-template-columns: repeat(1, 1fr);
	gap: 12px;
}
					.profile-header {
	display: flex;
	align-items: center;
	gap: clamp(15px, 3vw, 30px);
	margin-bottom: clamp(20px, 4vw, 35px);
	flex-wrap: wrap;
	flex-direction: column !important;
}
        }

        /* Small Devices (phones, 321px to 480px) */
        @media (min-width: 321px) and (max-width: 480px) {

            .search-section,
            .profile-section,
            .followers-section {
                padding: clamp(20px, 4vw, 30px);
            }

            .input-group {
                flex-direction: column;
                gap: 15px;
                width: 100%;
            }

            .input-field {
                width: 100%;
                min-width: 100%;
                flex: none;
            }

            .btn {
                width: 100%;
                min-width: 100%;
                flex: none;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .followers-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .follower-stats {
                grid-template-columns: repeat(2, 1fr);
            }
					.followers-grid {
	grid-template-columns: repeat(1, 1fr) !important;
	gap: 10px !important;
}
					.stats-grid {
	grid-template-columns: repeat(1, 1fr);
	gap: 12px;
}
					.profile-header {
	display: flex;
	align-items: center;
	gap: clamp(15px, 3vw, 30px);
	margin-bottom: clamp(20px, 4vw, 35px);
	flex-wrap: wrap;
	flex-direction: column !important;
}
        }

        /* Medium Devices (tablets, 481px to 768px) */
        @media (min-width: 481px) and (max-width: 768px) {
            .container {
                padding: clamp(15px, 3vw, 25px);
            }

            .input-group {
                flex-direction: column;
                gap: 15px;
                width: 100%;
            }

            .input-field {
                width: 100%;
                min-width: 100%;
                flex: none;
            }

            .btn {
                width: 100%;
                min-width: 100%;
                flex: none;
            }

            .profile-header {
                flex-direction: column;
                text-align: center;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .followers-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
					.followers-grid {
	grid-template-columns: repeat(1, 1fr) !important;
	gap: 10px !important;
}
        }

        /* Large Devices (desktops, 769px to 1024px) */
        @media (min-width: 769px) and (max-width: 1024px) {
            .input-group {
                flex-direction: row;
                gap: clamp(10px, 2vw, 20px);
            }

            .input-field {
                flex: 1;
                min-width: min(300px, 100%);
                width: auto;
            }

            .btn {
                min-width: min(200px, 100%);
                width: auto;
                flex-shrink: 0;
            }

            .followers-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            }
					.followers-grid {
	grid-template-columns: repeat(1, 1fr) !important;
	gap: 10px !important;
}
        }

        /* Extra Large Devices (large desktops, 1025px and up) */
        @media (min-width: 1025px) {
            .input-group {
                flex-direction: row;
                gap: clamp(10px, 2vw, 20px);
            }

            .input-field {
                flex: 1;
                min-width: min(300px, 100%);
                width: auto;
            }

            .btn {
                min-width: min(200px, 100%);
                width: auto;
                flex-shrink: 0;
            }

            .followers-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

        /* Landscape orientation adjustments */
        @media (orientation: landscape) and (max-height: 600px) {
            .header {
                margin-bottom: 20px;
            }

            .logo {
                font-size: 2rem;
            }

            .logo-icon {
                font-size: 2.5rem;
            }

            .subtitle {
                font-size: 0.9rem;
            }

            .search-section,
            .profile-section,
            .followers-section {
                padding: 20px;
                margin-bottom: 20px;
            }
					.followers-grid {
	grid-template-columns: repeat(1, 1fr) !important;
	gap: 10px !important;
}
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2),
        (min-resolution: 192dpi) {

            .profile-avatar,
            .follower-avatar {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }

        /* Reduced motion preferences */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .floating-hearts {
                display: none;
            }
        }

        /* Dark mode support (keeping light theme consistent) */
        @media (prefers-color-scheme: dark) {

            /* Force light theme colors */
            body {
                background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 25%, var(--secondary-color) 50%, var(--tertiary-color) 75%, var(--quaternary-color) 100%);
                color: var(--text-dark);
            }

            .search-section,
            .profile-section,
            .followers-section {
                background: var(--white-transparent);
                color: var(--text-dark);
            }

            .follower-card {
                background: var(--white);
                color: var(--text-dark);
            }
        }

        /* Print styles */
        @media print {

            .floating-hearts,
            .btn,
            .loading {
                display: none !important;
            }

            body {
                background: white !important;
                color: black !important;
            }

            .search-section,
            .profile-section,
            .followers-section {
                background: white !important;
                box-shadow: none !important;
                border: 1px solid #ccc !important;
            }
        }

        /* Focus styles for accessibility */
        .btn:focus,
        .input-field:focus {
            outline: none;
        }

        .btn:focus-visible,
        .input-field:focus-visible {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {

            .btn:hover,
            .stat-card:hover,
            .follower-card:hover,
            .follower-stat:hover {
                transform: none;
            }

            .btn:active,
            .stat-card:active,
            .follower-card:active,
            .follower-stat:active {
                transform: scale(0.98);
            }
        }

/* --- Codex CSS updates --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff2d73;
    --primary-light: #ff6a9d;
    --secondary-color: #7c3aed;
    --tertiary-color: #2563eb;
    --quaternary-color: #06b6d4;
    --text-dark: #111827;
    --text-light: #5b6475;
    --white: #ffffff;
    --white-transparent: rgba(255, 255, 255, 0.92);
    --shadow-light: rgba(17, 24, 39, 0.06);
    --shadow-medium: rgba(17, 24, 39, 0.12);
    --shadow-heavy: rgba(17, 24, 39, 0.18);
    --border-light: #e5e7eb;
    --border-hover: rgba(255, 45, 115, 0.32);
    --success-bg: #dcfce7;
    --success-color: #166534;
    --error-bg: #fee2e2;
    --error-color: #991b1b;
}

.tiktok_body {
    position: relative;
    isolation: isolate;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(6, 182, 212, 0.24), transparent 30%),
        linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 48%, var(--tertiary-color) 100%);
    background-attachment: fixed;
    padding: clamp(16px, 3vw, 28px);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 60vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container_tiktok {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(10px, 2vw, 24px);
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: clamp(22px, 4vw, 42px);
}

.logo {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: clamp(1.8rem, 4.4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    text-transform: capitalize !important;
}

.logo-icon {
    width: clamp(42px, 8vw, 62px);
    height: clamp(42px, 8vw, 62px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.18);
    animation: followerBounce 2.6s ease-in-out infinite;
    flex-shrink: 0;
}

.subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    font-weight: 500;
    letter-spacing: 0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    text-transform: capitalize !important;
}

.search-section,
.profile-section,
.followers-section {
    background: var(--white-transparent);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 38px) !important;
    margin-bottom: clamp(22px, 4vw, 34px) !important;
    box-shadow: 0 24px 70px var(--shadow-heavy), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.input-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(18px, 3vw, 26px);
    flex-wrap: nowrap;
}

.input-field {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 60px !important;
    padding: 0 18px !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    line-height: 54px !important;
    outline: none !important;
    color: var(--text-dark) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    font-weight: 500 !important;
    box-shadow: 0 10px 28px var(--shadow-light) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
    appearance: none !important;
    resize: none !important;
    overflow: hidden !important;
}

.input-field::placeholder {
    color: #8a94a6;
}

.input-field:focus {
    border-color: var(--primary-color) !important;
    background: var(--white) !important;
    box-shadow: 0 0 0 4px rgba(255, 45, 115, 0.14), 0 14px 34px var(--shadow-light) !important;
    transform: translateY(-1px) !important;
}

.btn {
    min-width: 190px;
    width: auto;
    height: 54px;
    min-height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 58%, var(--tertiary-color) 100%);
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.28), 0 6px 18px rgba(255, 45, 115, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    appearance: none;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -110%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transition: left 0.55s ease;
}

.btn:hover::before {
    left: 110%;
}

.btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow: 0 18px 42px rgba(124, 58, 237, 0.34), 0 8px 24px rgba(255, 45, 115, 0.26);
}

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

.btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
}

#searchAnotherBtn {
    display: none;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.loading {
    display: none;
    text-align: center;
    padding: clamp(18px, 4vw, 28px);
    color: var(--primary-color);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 45, 115, 0.14);
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 14px;
    box-shadow: 0 0 24px rgba(255, 45, 115, 0.18);
}

.loading-text {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 650;
}

.profile-section {
    display: none;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 28px);
    margin-bottom: clamp(20px, 4vw, 32px);
    flex-wrap: wrap;
}

.profile-avatar {
    width: clamp(84px, 13vw, 116px);
    height: clamp(84px, 13vw, 116px);
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    outline: 3px solid rgba(255, 45, 115, 0.5);
    box-shadow: 0 18px 36px var(--shadow-medium);
    object-fit: cover;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.profile-avatar:hover {
    transform: scale(1.04);
    box-shadow: 0 22px 44px var(--shadow-medium);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h2 {
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.profile-info p {
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
    font-size: clamp(0.94rem, 2vw, 1.05rem);
    overflow-wrap: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
    margin-top: clamp(18px, 3vw, 30px);
}

.stat-card {
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 55%, var(--tertiary-color) 100%);
    color: var(--white);
    padding: clamp(18px, 3vw, 26px);
    border-radius: 18px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.24);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -110%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 110%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(124, 58, 237, 0.3);
}

.stat-number {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.stat-label {
    font-size: 0.78rem;
    opacity: 0.96;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.followers-section {
    display: none;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: clamp(18px, 3vw, 30px);
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    text-transform: capitalize !important;
}

.followers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-top: clamp(14px, 3vw, 24px);
}

.follower-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px var(--shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: tikTokSlideIn 0.55s ease-out;
}

.follower-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--quaternary-color));
}

.follower-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px var(--shadow-medium);
    border-color: var(--border-hover);
}

.follower-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.follower-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 45, 115, 0.55);
    object-fit: cover;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 14px rgba(255, 45, 115, 0.14);
    flex-shrink: 0;
}

.follower-card:hover .follower-avatar {
    transform: scale(1.07);
    box-shadow: 0 8px 18px rgba(255, 45, 115, 0.22);
}

.follower-info {
    flex: 1;
    min-width: 0;
}

.follower-name {
    color: var(--text-dark);
    font-size: 0.92rem;
    margin-bottom: 2px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.follower-username {
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 550;
    overflow-wrap: break-word;
}

.follower-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
}

.follower-stat {
    text-align: center;
    padding: 8px 6px;
    background: #f8fafc;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.follower-stat:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 45, 115, 0.16);
}

.follower-stat-number {
    display: block;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    transition: color 0.25s ease;
}

.follower-stat:hover .follower-stat-number {
    color: var(--white);
}

.follower-stat-label {
    color: var(--text-light);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.follower-stat:hover .follower-stat-label {
    color: rgba(255, 255, 255, 0.92);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: var(--white);
    font-size: 8px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
    flex-shrink: 0;
}

.error-message {
    display: none;
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, var(--error-bg), #fecaca);
    color: var(--error-color);
    font-weight: 650;
    box-shadow: 0 10px 24px rgba(153, 27, 27, 0.08);
}

.success-message {
    display: none;
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    border-left: 4px solid #22c55e;
    background: linear-gradient(135deg, var(--success-bg), #bbf7d0);
    color: var(--success-color);
    font-weight: 650;
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.08);
}

.empty-state {
    text-align: center;
    padding: clamp(42px, 8vw, 72px) 18px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    margin-bottom: 18px;
    opacity: 0.68;
    animation: followerBounce 2.6s ease-in-out infinite;
}

.empty-state-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 650;
}

.floating-hearts {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    color: var(--primary-color);
    font-size: clamp(12px, 3vw, 20px);
    animation: floatHeart 4s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

.tiktok_body .fa,
.tiktok_body .fas,
.tiktok_body .far,
.tiktok_body .fab,
.tiktok_body [class^="fa-"],
.tiktok_body [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome, sans-serif !important;
    font-style: normal;
    line-height: 1;
}

@keyframes followerBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    40% {
        transform: translateY(-8px) rotate(-4deg);
    }

    60% {
        transform: translateY(-4px) rotate(4deg);
    }
}

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

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

@keyframes tikTokSlideIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }

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

@media (max-width: 768px) {
    .tiktok_body {
        padding: 14px;
        background-attachment: scroll;
    }

    .container_tiktok {
        padding: 6px;
    }

    .header {
        margin-bottom: 22px;
    }

    .logo {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
        gap: 10px;
    }

    .subtitle {
        font-size: 0.96rem;
        max-width: 94%;
    }

    .search-section,
    .profile-section,
    .followers-section {
        border-radius: 18px;
        padding: 18px !important;
        margin-bottom: 18px !important;
    }

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

    .input-field {
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 56px !important;
        line-height: 52px !important;
        padding: 0 15px !important;
        font-size: 15px !important;
    }

    .btn {
        width: 100%;
        min-width: 100%;
        height: 52px;
        min-height: 52px;
        padding: 0 18px;
        font-size: 15px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-info {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .followers-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .follower-card {
        padding: 14px;
    }
}

@media (max-width: 320px) {
    .tiktok_body {
        padding: 10px;
    }

    .logo {
        flex-direction: column;
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.8rem;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 14px !important;
        border-radius: 16px;
    }

    .input-field,
    .btn {
        height: 50px !important;
        min-height: 50px !important;
        font-size: 14px !important;
    }

    .follower-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .input-group {
        flex-direction: row;
    }

    .followers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .input-group {
        flex-direction: row;
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .header {
        margin-bottom: 18px;
    }

    .logo {
        font-size: 1.9rem;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 18px !important;
        margin-bottom: 18px !important;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-avatar,
    .follower-avatar {
        image-rendering: -webkit-optimize-contrast;
    }
}

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

    .floating-hearts {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .tiktok_body {
        color: var(--text-dark);
    }

    .search-section,
    .profile-section,
    .followers-section,
    .follower-card {
        color: var(--text-dark);
    }
}

@media print {
    .floating-hearts,
    .btn,
    .loading {
        display: none !important;
    }

    .tiktok_body {
        background: white !important;
        color: black !important;
    }

    .search-section,
    .profile-section,
    .followers-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

.btn:focus,
.input-field:focus {
    outline: none;
}

.btn:focus-visible,
.input-field:focus-visible {
    outline: 3px solid rgba(255, 45, 115, 0.42);
    outline-offset: 3px;
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .stat-card:hover,
    .follower-card:hover,
    .follower-stat:hover {
        transform: none;
    }

    .btn:active,
    .stat-card:active,
    .follower-card:active,
    .follower-stat:active {
        transform: scale(0.98);
    }
}