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

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

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        :root {
            --primary: #2af0ea;
            --primary-glow: rgba(42, 240, 234, 0.34);
            --secondary: #ff4fa3;
            --accent: #ff4fa3;
            --accent-purple: #ff7a59;
            --primary-color: #2af0ea;
            --primary-light: #ff4fa3;
            --secondary-color: #ff7a59;
            --tertiary-color: #25f4ee;
            --quaternary-color: #ff0050;
            --text-dark: #ffffff;
            --text-light: #9f8dbd;
            --white: #ffffff;
            --white-transparent: rgba(22, 12, 32, 0.78);
            --shadow-light: rgba(8, 4, 18, 0.3);
            --shadow-medium: rgba(8, 4, 18, 0.56);
            --shadow-heavy: rgba(8, 4, 18, 0.56);
            --border-light: rgba(122, 243, 238, 0.22);
            --border-hover: rgba(42, 240, 234, 0.3);
            --success-bg: rgba(42, 240, 234, 0.15);
            --success-color: #2af0ea;
            --error-bg: rgba(255, 79, 163, 0.15);
            --error-color: #ff4fa3;

            --glass-dark: rgba(22, 12, 32, 0.78);
            --glass-border: rgba(122, 243, 238, 0.22);
            --shadow-lg: 0 24px 56px rgba(8, 4, 18, 0.56);
            --shadow-xl: 0 24px 56px rgba(8, 4, 18, 0.56);
            --shadow-teal: 0 8px 32px rgba(42, 240, 234, 0.3);
            --shadow-pink: 0 8px 32px rgba(255, 79, 163, 0.3);
            --glow-teal: 0 0 30px rgba(42, 240, 234, 0.5);
            --glow-pink: 0 0 30px rgba(255, 79, 163, 0.5);
            --glow-primary: 0 0 40px rgba(42, 240, 234, 0.6);

            --radius-md: 14px;
            --radius-lg: 18px;
            --radius-xl: 17px;
            --transition: all 0.3s cubic-bezier(.23, 1.02, .67, 1.01);
        }

        .tiktok_body {
            position: relative;
            z-index: 0;
            min-height: 100vh;
            background:
                radial-gradient(circle at 10% 12%, rgba(42, 240, 234, 0.3), transparent 34%),
                radial-gradient(circle at 88% 14%, rgba(255, 79, 163, 0.34), transparent 38%),
                radial-gradient(circle at 80% 82%, rgba(255, 122, 89, 0.2), transparent 42%),
                radial-gradient(circle at 18% 84%, rgba(143, 92, 255, 0.22), transparent 44%),
                radial-gradient(circle at 52% 52%, rgba(255, 255, 255, 0.05), transparent 52%),
                linear-gradient(136deg, #09040d 0%, #150819 20%, #2a1033 42%, #3b0f2f 60%, #4a1638 78%, #120918 100%);
            background-size: 190% 190%, 180% 180%, 220% 220%, 210% 210%, 230% 230%, 240% 240%;
            animation: tiktok-aurora 16s ease-in-out infinite;
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
            padding: 20px;
        }

        .tiktok_body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                linear-gradient(160deg, rgba(4, 2, 10, 0.46), rgba(16, 8, 22, 0.22)),
                radial-gradient(circle at 18% 18%, rgba(42, 240, 234, 0.08), transparent 52%),
                radial-gradient(circle at 82% 76%, rgba(255, 79, 163, 0.08), transparent 48%),
                radial-gradient(circle at 55% 56%, rgba(255, 122, 89, 0.06), transparent 54%);
            pointer-events: none;
            z-index: -1;
        }

        @keyframes tiktok-aurora {
            0% { background-position: 0% 50%, 100% 50%, 50% 0%; }
            50% { background-position: 100% 50%, 0% 50%, 50% 100%; }
            100% { background-position: 0% 50%, 100% 50%, 50% 0%; }
        }

        .container_tiktok {
            max-width: min(1400px, 95vw);
            margin: 0 auto;
            padding: 7rem 0 0;
        }

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

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(8px, 2vw, 15px);
            flex-wrap: wrap;
            margin-bottom: clamp(10px, 2vw, 15px);
        }

        .logo h1 {
            font-size: clamp(1.6rem, 5vw, 2.5rem);
            font-weight: 800;
            background: linear-gradient(135deg, #00f2ea 0%, #25f4ee 25%, #ff0050 75%, #ff4fa3 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin: 0;
        }

 

        .logo-icon {
            font-size: clamp(2.5rem, 7vw, 4rem);
            animation: followerBounce 2s ease-in-out infinite;
            flex-shrink: 0;
            filter: none;
            text-shadow: 0 4px 20px rgba(42, 240, 234, 0.5);
            opacity: 1;
        }

        @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: var(--primary-color);
            font-weight: 400;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 10px rgba(42, 240, 234, 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) !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);
        }

        .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 rgba(122, 243, 238, 0.18) !important;
            border-radius: var(--radius-lg) !important;
            font-size: clamp(14px, 2.5vw, 16px) !important;
            outline: none !important;
            background: rgba(18, 9, 23, 0.68) !important;
            color: var(--text-dark) !important;
            transition: var(--transition) !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 {
            outline: none !important;
            border-color: rgba(110, 238, 232, 0.78) !important;
            background: rgba(22, 12, 32, 0.78) !important;
            box-shadow: 0 0 0 4px rgba(42, 240, 234, 0.14), 0 10px 24px rgba(18, 8, 28, 0.28) !important;
            transform: translateY(-2px) !important;
        }

        .input-field::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .btn {
            padding: clamp(12px, 2.5vw, 18px) clamp(20px, 4vw, 35px);
            background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff0050 75%, #ff4fa3 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(42, 240, 234, 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(42, 240, 234, 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(42, 240, 234, 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(42, 240, 234, 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(42, 240, 234, 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(42, 240, 234, 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(42, 240, 234, 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(--primary-color);
            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(42, 240, 234, 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(42, 240, 234, 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(42, 240, 234, 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(42, 240, 234, 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;
        }

        @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;
            }
					.logo {
	font-size: 28px;
	font-weight: 800;
	color: var(--primary-color);
	text-shadow: 0 4px 20px rgba(105, 176, 69, 0.3);
}
        }

        /* 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));
            }
					.logo {
	font-size: 28px;
	font-weight: 800;
	color: var(--primary-color);
	text-shadow: 0 4px 20px rgba(105, 176, 69, 0.3);
}
        }

        /* 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(136deg, #09040d 0%, #150819 20%, #2a1033 42%, #3b0f2f 60%, #4a1638 78%, #120918 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;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --primary: #25f4ee;
    --primary-glow: rgba(37, 244, 238, 0.34);
    --secondary: #ff0050;
    --accent: #ff4fa3;
    --accent-purple: #ff7a59;
    --primary-color: #25f4ee;
    --primary-light: #ff0050;
    --secondary-color: #ff7a59;
    --tertiary-color: #25f4ee;
    --quaternary-color: #ff0050;
    --text-dark: #f8fbff;
    --text-light: #b9c1d4;
    --white: #ffffff;
    --white-transparent: rgba(14, 18, 30, 0.78);
    --shadow-light: rgba(2, 6, 18, 0.22);
    --shadow-medium: rgba(2, 6, 18, 0.42);
    --shadow-heavy: rgba(2, 6, 18, 0.56);
    --border-light: rgba(37, 244, 238, 0.22);
    --border-hover: rgba(255, 0, 80, 0.38);
    --success-bg: rgba(37, 244, 238, 0.12);
    --success-color: #83fff9;
    --error-bg: rgba(255, 0, 80, 0.13);
    --error-color: #ff8bb4;

    --glass-dark: rgba(14, 18, 30, 0.78);
    --glass-border: rgba(37, 244, 238, 0.22);
    --shadow-lg: 0 24px 56px rgba(2, 6, 18, 0.56);
    --shadow-xl: 0 30px 80px rgba(2, 6, 18, 0.6);
    --shadow-teal: 0 8px 32px rgba(37, 244, 238, 0.24);
    --shadow-pink: 0 8px 32px rgba(255, 0, 80, 0.25);
    --glow-teal: 0 0 30px rgba(37, 244, 238, 0.42);
    --glow-pink: 0 0 30px rgba(255, 0, 80, 0.42);
    --glow-primary: 0 0 40px rgba(37, 244, 238, 0.48);

    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --transition: all 0.3s cubic-bezier(.23, 1.02, .67, 1.01);
}

.tiktok_body {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 10%, rgba(37, 244, 238, 0.28), transparent 32%),
        radial-gradient(circle at 88% 14%, rgba(255, 0, 80, 0.32), transparent 35%),
        radial-gradient(circle at 82% 82%, rgba(255, 122, 89, 0.18), transparent 40%),
        radial-gradient(circle at 18% 86%, rgba(85, 91, 255, 0.18), transparent 42%),
        linear-gradient(136deg, #05070d 0%, #101522 28%, #171022 52%, #24101d 74%, #070911 100%);
    background-size: 190% 190%, 180% 180%, 220% 220%, 210% 210%, 240% 240%;
    animation: tiktok-aurora 16s ease-in-out infinite;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding: clamp(24px, 4vw, 56px) 16px;
}

.tiktok_body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(2, 4, 10, 0.5), rgba(18, 10, 24, 0.2)),
        radial-gradient(circle at 18% 18%, rgba(37, 244, 238, 0.08), transparent 52%),
        radial-gradient(circle at 82% 76%, rgba(255, 0, 80, 0.08), transparent 48%);
    pointer-events: none;
    z-index: -1;
}

@keyframes tiktok-aurora {
    0% { background-position: 0% 50%, 100% 50%, 50% 0%, 0% 100%, 50% 50%; }
    50% { background-position: 100% 50%, 0% 50%, 50% 100%, 100% 0%, 50% 50%; }
    100% { background-position: 0% 50%, 100% 50%, 50% 0%, 0% 100%, 50% 50%; }
}

.container_tiktok {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 72px) 0 0;
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 16px);
    flex-wrap: wrap;
    margin-bottom: clamp(10px, 2vw, 16px);
    font-weight: 800;
    color: var(--primary-color);
}

.logo h1 {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    background: linear-gradient(135deg, #25f4ee 0%, #f8fbff 35%, #ff0050 78%, #ff7a59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    margin: 0;
    overflow-wrap: anywhere;
}

.logo-icon {
    font-size: clamp(2.4rem, 7vw, 4.1rem);
    animation: followerBounce 2s ease-in-out infinite;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 22px rgba(37, 244, 238, 0.35));
    opacity: 1;
}

@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.95rem, 2.5vw, 1.2rem);
    color: #d7fbff;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 10px rgba(37, 244, 238, 0.16);
    max-width: 680px;
    margin: 0 auto;
}

.search-section,
.profile-section,
.followers-section {
    background: var(--white-transparent);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 5vw, 44px) !important;
    margin-bottom: clamp(24px, 4vw, 40px) !important;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--glass-border);
}

.input-group {
    display: flex;
    gap: clamp(12px, 2vw, 18px);
    margin-bottom: clamp(18px, 3vw, 28px);
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-field {
    flex: 1 1 420px !important;
    min-width: 0 !important;
    padding: clamp(13px, 2.5vw, 18px) clamp(16px, 3vw, 24px) !important;
    border: 2px solid rgba(37, 244, 238, 0.2) !important;
    border-radius: var(--radius-lg) !important;
    font-size: clamp(14px, 2.5vw, 16px) !important;
    outline: none !important;
    background: rgba(5, 9, 18, 0.72) !important;
    color: var(--text-dark) !important;
    transition: var(--transition) !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 18px var(--shadow-light) !important;
    appearance: none !important;
    width: 100% !important;
    min-height: 54px;
}

.input-field:focus {
    outline: none !important;
    border-color: rgba(37, 244, 238, 0.82) !important;
    background: rgba(8, 13, 24, 0.88) !important;
    box-shadow: 0 0 0 4px rgba(37, 244, 238, 0.14), 0 10px 26px rgba(2, 6, 18, 0.34) !important;
    transform: translateY(-1px) !important;
}

.input-field::placeholder {
    color: rgba(248, 251, 255, 0.52);
}

.btn {
    padding: clamp(13px, 2.5vw, 18px) clamp(20px, 4vw, 32px);
    background: linear-gradient(135deg, #25f4ee 0%, #1bbfcb 28%, #ff0050 78%, #ff4fa3 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    min-width: min(210px, 100%);
    width: auto;
    box-shadow: var(--shadow-teal), 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    appearance: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    gap: 8px;
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(255, 0, 80, 0.28), 0 10px 28px rgba(37, 244, 238, 0.22);
}

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

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

#searchAnotherBtn {
    display: none;
}

#searchAnotherBtn span {
    font-size: 1.2em;
}

.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(37, 244, 238, 0.12);
    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(37, 244, 238, 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: 700;
}

.profile-section {
    display: none;
}

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

.profile-avatar {
    width: clamp(82px, 15vw, 120px);
    height: clamp(82px, 15vw, 120px);
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: var(--glow-teal), 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.45rem, 4vw, 2.2rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

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

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

.stat-card {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.96) 0%, rgba(255, 0, 80, 0.94) 100%);
    color: var(--white);
    padding: clamp(20px, 4vw, 30px);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(37, 244, 238, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.12);
    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.14), transparent);
    transition: left 0.5s;
}

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

.stat-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 60px rgba(255, 0, 80, 0.26), 0 10px 28px rgba(37, 244, 238, 0.2);
}

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

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

.followers-section {
    display: none;
}

.section-title {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    color: var(--primary-color);
    margin-bottom: clamp(20px, 4vw, 35px);
    text-align: center;
    font-weight: 800;
    overflow-wrap: anywhere;
}

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

.follower-card {
    background: rgba(248, 251, 255, 0.96);
    border: 1px solid rgba(37, 244, 238, 0.18);
    border-radius: var(--radius-md);
    padding: clamp(12px, 2vw, 16px);
    box-shadow: 0 8px 22px var(--shadow-light), 0 0 0 1px rgba(255, 255, 255, 0.45);
    transition: var(--transition);
    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 14px 34px var(--shadow-medium), 0 0 0 1px rgba(37, 244, 238, 0.2);
    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(34px, 6vw, 44px);
    height: clamp(34px, 6vw, 44px);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(37, 244, 238, 0.18);
    flex-shrink: 0;
}

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

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

.follower-name {
    color: #101522;
    font-size: clamp(0.78rem, 2vw, 0.95rem);
    margin-bottom: 2px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.follower-username {
    color: #607086;
    font-size: clamp(0.68rem, 1.8vw, 0.78rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.follower-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(6px, 1vw, 8px);
    padding-top: clamp(8px, 1.5vw, 10px);
    border-top: 1px solid rgba(16, 21, 34, 0.1);
}

.follower-stat {
    text-align: center;
    padding: clamp(5px, 1vw, 7px) clamp(4px, 0.8vw, 5px);
    background: #eef7f9;
    border-radius: 8px;
    transition: var(--transition);
}

.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(37, 244, 238, 0.18);
}

.follower-stat-number {
    font-weight: 800;
    color: #0eaeb1;
    display: block;
    font-size: clamp(0.65rem, 1.8vw, 0.82rem);
    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.52rem, 1.5vw, 0.62rem);
    color: #607086;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s 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: 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%, rgba(255, 0, 80, 0.2) 100%);
    color: var(--error-color);
    padding: clamp(12px, 2.5vw, 18px);
    border-radius: var(--radius-md);
    margin: clamp(15px, 3vw, 20px) 0;
    border-left: 5px solid #ff0050;
    display: none;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.12);
    overflow-wrap: anywhere;
}

.success-message {
    background: linear-gradient(135deg, var(--success-bg) 0%, rgba(37, 244, 238, 0.2) 100%);
    color: var(--success-color);
    padding: clamp(12px, 2.5vw, 18px);
    border-radius: var(--radius-md);
    margin: clamp(15px, 3vw, 20px) 0;
    border-left: 5px solid var(--primary-color);
    display: none;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(37, 244, 238, 0.12);
    overflow-wrap: anywhere;
}

.empty-state {
    text-align: center;
    padding: clamp(44px, 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.75;
    animation: followerBounce 2s ease-in-out infinite;
}

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

.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;
}

@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);
    }
}

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

    .container_tiktok {
        padding-top: 24px;
    }

    .logo {
        flex-direction: column;
    }

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

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

    .input-field,
    .btn {
        width: 100% !important;
        min-width: 100%;
        flex: none !important;
        white-space: normal;
    }

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

    .stats-grid,
    .followers-grid,
    .follower-stats {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media (min-width: 321px) and (max-width: 480px) {
    .tiktok_body {
        padding: 20px 12px;
    }

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

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

    .input-field,
    .btn {
        width: 100% !important;
        min-width: 100%;
        flex: none !important;
    }

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

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

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

@media (min-width: 481px) and (max-width: 768px) {
    .tiktok_body {
        padding: 28px 16px;
    }

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

    .input-field,
    .btn {
        width: 100% !important;
        min-width: 100%;
        flex: none !important;
    }

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

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

    .followers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }

    .logo {
        font-size: 28px;
        font-weight: 800;
        color: var(--primary-color);
        text-shadow: 0 4px 20px rgba(37, 244, 238, 0.25);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .input-group {
        flex-direction: row;
        gap: clamp(10px, 2vw, 18px);
    }

    .input-field {
        flex: 1 1 420px;
        width: auto;
    }

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

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

@media (min-width: 1025px) {
    .input-group {
        flex-direction: row;
        gap: clamp(10px, 2vw, 18px);
    }

    .input-field {
        flex: 1 1 420px;
        width: auto;
    }

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

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

    .logo {
        font-size: 28px;
        font-weight: 800;
        color: var(--primary-color);
        text-shadow: 0 4px 20px rgba(37, 244, 238, 0.25);
    }
}

@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 !important;
        margin-bottom: 20px !important;
    }

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

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

@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 {
        background:
            radial-gradient(circle at 8% 10%, rgba(37, 244, 238, 0.28), transparent 32%),
            radial-gradient(circle at 88% 14%, rgba(255, 0, 80, 0.32), transparent 35%),
            linear-gradient(136deg, #05070d 0%, #101522 28%, #171022 52%, #24101d 74%, #070911 100%);
        color: var(--text-dark);
    }

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

    .follower-card {
        background: rgba(248, 251, 255, 0.96);
        color: #101522;
    }
}

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

    .tiktok_body {
        background: white !important;
        color: black !important;
        padding: 0 !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: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@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);
    }
}