@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);
    --accent: #ff4fa3;
    --accent-purple: #ff7a59;
    --success: #10B981;
    --error: #EF4444;
    --white: #fff7fb;
    --gray-100: #fdf2ff;
    --gray-300: #d9c7ef;
    --gray-500: #9f8dbd;
    --gray-800: #2e2142;
    --gray-900: #120917;
    --glass-bg: 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);
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 17px;
    --transition: all 0.3s cubic-bezier(.23, 1.02, .67, 1.01);
    --text-primary: #ffffff;
    --text-secondary: #d9c7ef;
    --text-muted: #9f8dbd;
    --border-color: rgba(122, 243, 238, 0.22);
}

.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-primary);
    line-height: 1.6;
    padding: 10px 10px;
    overflow-x: hidden;
    width: 100%;
}

.tiktok_body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    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%);
    opacity: 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: 1400px;
    margin: 0 auto;
    padding: 32px 16px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-direction: column;
}

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

.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.title {
    font-size: clamp(1.6rem, 4vw, 2.5rem) !important;
    font-weight: 900;
    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);
    letter-spacing: -2px;
    font-family: 'Sora', sans-serif;
    margin: 0;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.search-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    border: 2px solid var(--glass-border);
    padding: clamp(24px, 5vw, 48px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100% !important;
    padding: clamp(16px, 3vw, 20px) clamp(20px, 4vw, 24px)  !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;
    font-weight: 500  !important;
    background: rgba(18, 9, 23, 0.68)  !important;
    color: var(--text-primary)  !important;
    transition: var(--transition)  !important;
}

.search-input: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;
}

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

.search-box {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-button {
    flex: 1;
    min-width: 200px;
    padding: clamp(16px, 3vw, 20px) clamp(24px, 5vw, 32px);
    background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff0050 75%, #ff4fa3 100%);
    color: white;
    border: 1px solid rgba(122, 243, 238, 0.32);
    border-radius: var(--radius-md);
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(42, 240, 234, 0.3);
}

.search-button::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;
}

.search-button:hover:not(:disabled)::before {
    left: 100%;
}

.search-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(42, 240, 234, 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(254, 44, 85, 0.5), 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-light);
        }

        .spinner {
            width: clamp(40px, 8vw, 60px);
            height: clamp(40px, 8vw, 60px);
            border: 5px solid rgba(254, 44, 85, 0.2);
            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(254, 44, 85, 0.3);
        }

        @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: rgba(30, 30, 63, 0.8);
            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(254, 44, 85, 0.2);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(254, 44, 85, 0.3);
        }

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

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

        .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-primary) !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) !important;
        }

        .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(254, 44, 85, 0.4), 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(254, 44, 85, 0.3), 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(254, 44, 85, 0.4), 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: rgba(30, 30, 63, 0.8);
            border-radius: clamp(15px, 3vw, 25px);
            padding: clamp(25px, 5vw, 45px);
            box-shadow: 0 25px 80px var(--shadow-heavy), 0 0 0 1px rgba(254, 44, 85, 0.2);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(254, 44, 85, 0.3);
        }

        .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: rgba(255, 255, 255, 0.9);
            border: 1px solid var(--border-light);
            border-radius: clamp(10px, 2vw, 15px);
            padding: clamp(10px, 2vw, 15px);
            box-shadow: 0 5px 15px var(--shadow-medium), 0 0 0 1px rgba(254, 44, 85, 0.2);
            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-heavy), 0 0 0 1px rgba(254, 44, 85, 0.3);
            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(254, 44, 85, 0.25);
            flex-shrink: 0;
        }

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

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

        .follower-name {
            color: #0f0f23;
            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 var(--border-light);
        }

        .follower-stat {
            text-align: center;
            padding: clamp(4px, 1vw, 6px) clamp(3px, 0.8vw, 4px);
            background: rgba(254, 44, 85, 0.1);
            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(254, 44, 85, 0.25);
        }

        .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, var(--primary-color) 0%, var(--primary-light) 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(254, 44, 85, 0.3);
            flex-shrink: 0;
        }

/*         .logo {
	font-size: 44px;
	font-weight: 800;
	color: #f3f1f5 !important;
	text-shadow: 0 4px 20px rgba(254, 44, 85, 0.4);
} */

        .error-message {
            background: linear-gradient(135deg, var(--error-bg) 0%, rgba(248, 113, 113, 0.3) 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 var(--error-color);
            display: none;
            font-weight: 600;
            box-shadow: 0 8px 25px rgba(248, 113, 113, 0.2);
        }

        .success-message {
            background: linear-gradient(135deg, var(--success-bg) 0%, rgba(52, 211, 153, 0.3) 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 var(--success-color);
            display: none;
            font-weight: 600;
            box-shadow: 0 8px 25px rgba(52, 211, 153, 0.2);
        }

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

        /* 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 dark theme consistent) */
        @media (prefers-color-scheme: dark) {

            /* Force dark theme colors */
            body {
                background-color: #0f0f23;
                color: var(--text-dark);
            }

            .search-section,
            .profile-section,
            .followers-section {
                background: rgba(30, 30, 63, 0.8);
                color: var(--text-dark);
            }

            .follower-card {
                background: rgba(255, 255, 255, 0.9);
                color: #0f0f23;
            }
        }

        /* 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);
            }
        }

        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }

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

:root {
    --primary: #25f4ee;
    --primary-color: #25f4ee;
    --primary-light: #66fff8;
    --primary-glow: rgba(37, 244, 238, 0.34);
    --accent: #ff0050;
    --secondary-color: #ff0050;
    --accent-purple: #ff4fa3;
    --success: #10B981;
    --success-color: #34d399;
    --success-bg: rgba(16, 185, 129, 0.14);
    --error: #EF4444;
    --error-color: #f87171;
    --error-bg: rgba(239, 68, 68, 0.14);
    --white: #fff7fb;
    --gray-100: #f7fbff;
    --gray-300: #c7d7e8;
    --gray-500: #92a5b8;
    --gray-800: #1f2a37;
    --gray-900: #071014;
    --glass-bg: rgba(7, 16, 20, 0.78);
    --glass-border: rgba(37, 244, 238, 0.24);
    --shadow-light: rgba(0, 0, 0, 0.12);
    --shadow-medium: rgba(0, 0, 0, 0.22);
    --shadow-heavy: rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 24px 56px rgba(2, 8, 12, 0.52);
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(.23, 1.02, .67, 1.01);
    --text-primary: #ffffff;
    --text-secondary: #d8edf2;
    --text-muted: #9db5bd;
    --text-dark: #f8fcff;
    --text-light: #b7cbd2;
    --border-color: rgba(37, 244, 238, 0.24);
    --border-light: rgba(37, 244, 238, 0.18);
    --border-hover: rgba(255, 0, 80, 0.45);
}

.tiktok_body {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% 10%, rgba(37, 244, 238, 0.28), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(255, 0, 80, 0.32), transparent 36%),
        radial-gradient(circle at 80% 86%, rgba(255, 79, 163, 0.18), transparent 40%),
        linear-gradient(135deg, #05080b 0%, #071014 26%, #0c1d22 48%, #121622 70%, #180812 100%);
    background-size: 190% 190%, 180% 180%, 210% 210%, 240% 240%;
    animation: tiktok-aurora 16s ease-in-out infinite;
}

.tiktok_body::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(2, 6, 8, 0.55), rgba(8, 16, 22, 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%);
}

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

.container_tiktok {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) clamp(14px, 3vw, 24px);
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 48px);
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-direction: column;
}

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

.logo-icon {
    font-size: clamp(2.4rem, 7vw, 4rem);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
    text-shadow: 0 4px 20px rgba(37, 244, 238, 0.5);
}

.title {
    font-size: clamp(1.8rem, 4.6vw, 3.1rem) !important;
    font-weight: 900;
    line-height: 1.12;
    background: linear-gradient(135deg, #25f4ee 0%, #ffffff 42%, #ff0050 76%, #ff7ab5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
    font-family: 'Sora', sans-serif;
    margin: 0;
    overflow-wrap: anywhere;
}

.logo h1.title {
    font-size: clamp(1.8rem, 4.6vw, 3.1rem) !important;
}

.subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 600;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.search-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    border: 1px solid var(--glass-border);
    padding: clamp(22px, 5vw, 44px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

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

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

.input-field:focus,
.search-input:focus {
    border-color: rgba(37, 244, 238, 0.8) !important;
    background: rgba(8, 20, 24, 0.9) !important;
    box-shadow: 0 0 0 4px rgba(37, 244, 238, 0.14), 0 10px 24px rgba(0, 0, 0, 0.28) !important;
    transform: translateY(-1px) !important;
}

.input-field::placeholder,
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.52) !important;
}

.search-box {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn,
.search-button {
    padding: clamp(13px, 2.5vw, 18px) clamp(20px, 4vw, 32px);
    background: linear-gradient(135deg, #25f4ee 0%, #1fb9c7 34%, #ff0050 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: min(210px, 100%);
    width: auto;
    box-shadow: 0 12px 28px rgba(37, 244, 238, 0.18), 0 12px 28px rgba(255, 0, 80, 0.2);
    position: relative;
    overflow: hidden;
    appearance: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

#searchAnotherBtn {
    display: none;
    gap: 8px;
}

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

.btn:hover::before,
.search-button:hover:not(:disabled)::before {
    left: 100%;
}

.btn:hover,
.search-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(37, 244, 238, 0.22), 0 16px 38px rgba(255, 0, 80, 0.32);
}

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

.spinner {
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    border: 5px solid rgba(37, 244, 238, 0.18);
    border-top: 5px solid var(--accent);
    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.3);
}

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

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

.profile-section,
.followers-section {
    display: none;
    background: rgba(7, 16, 20, 0.82);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 5vw, 44px);
    margin-bottom: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.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: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(37, 244, 238, 0.32), 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-primary);
    margin-bottom: clamp(5px, 1vw, 8px);
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    font-weight: 800;
    word-wrap: break-word;
    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);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.95) 0%, rgba(18, 117, 133, 0.95) 48%, rgba(255, 0, 80, 0.95) 100%);
    color: var(--white);
    padding: clamp(20px, 4vw, 30px);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    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.12), transparent);
    transition: left 0.5s;
}

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

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

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

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

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

.follower-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: clamp(12px, 2vw, 16px);
    box-shadow: 0 8px 20px var(--shadow-medium), 0 0 0 1px rgba(37, 244, 238, 0.12);
    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), var(--primary-light), var(--accent));
}

.follower-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px var(--shadow-heavy), 0 0 0 1px rgba(255, 0, 80, 0.25);
    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, 42px);
    height: clamp(34px, 6vw, 42px);
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(37, 244, 238, 0.28);
    flex-shrink: 0;
}

.follower-card:hover .follower-avatar {
    transform: scale(1.08);
    border-color: var(--accent);
}

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

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

.follower-username {
    color: #52636b;
    font-size: clamp(0.68rem, 1.8vw, 0.78rem);
    font-weight: 600;
    word-wrap: break-word;
    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(8, 16, 20, 0.12);
}

.follower-stat {
    text-align: center;
    padding: clamp(5px, 1vw, 7px) clamp(4px, 0.8vw, 5px);
    background: rgba(37, 244, 238, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.follower-stat-number {
    font-weight: 800;
    color: #08747b;
    display: block;
    font-size: clamp(0.64rem, 1.8vw, 0.82rem);
    line-height: 1;
    margin-bottom: 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.62rem);
    color: #5f7078;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    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, var(--primary) 0%, var(--accent) 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(37, 244, 238, 0.3);
    flex-shrink: 0;
}

.error-message {
    background: linear-gradient(135deg, var(--error-bg) 0%, rgba(248, 113, 113, 0.22) 100%);
    color: #fecaca;
    padding: clamp(12px, 2.5vw, 18px);
    border-radius: var(--radius-md);
    margin: clamp(15px, 3vw, 20px) 0;
    border-left: 5px solid var(--error-color);
    display: none;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.16);
}

.success-message {
    background: linear-gradient(135deg, var(--success-bg) 0%, rgba(52, 211, 153, 0.22) 100%);
    color: #bbf7d0;
    padding: clamp(12px, 2.5vw, 18px);
    border-radius: var(--radius-md);
    margin: clamp(15px, 3vw, 20px) 0;
    border-left: 5px solid var(--success-color);
    display: none;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.16);
}

.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.65;
    animation: followerBounce 2s ease-in-out infinite;
}

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

@keyframes followerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

.heart {
    position: absolute;
    color: var(--accent);
    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); }
}

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

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

@media (max-width: 320px) {
    .container,
    .container_tiktok {
        padding: 22px 10px;
    }

    .logo {
        flex-direction: column;
    }

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

    .input-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

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

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

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

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

@media (min-width: 321px) and (max-width: 480px) {
    .search-section,
    .profile-section,
    .followers-section {
        padding: clamp(20px, 4vw, 30px);
    }

    .input-group {
        flex-direction: column !important;
        gap: 15px !important;
    }

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

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

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

@media (min-width: 481px) and (max-width: 768px) {
    .container,
    .container_tiktok {
        padding: clamp(24px, 4vw, 36px) clamp(14px, 3vw, 20px);
    }

    .input-group {
        flex-direction: column !important;
        gap: 15px !important;
    }

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

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

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

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

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

    .input-field {
        flex: 1 !important;
        width: auto !important;
    }

    .btn {
        width: auto !important;
        flex-shrink: 0 !important;
    }

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

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

    .input-field {
        flex: 1 !important;
        width: auto !important;
    }

    .btn {
        width: auto !important;
        flex-shrink: 0 !important;
    }

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

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

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

    .subtitle {
        font-size: 0.9rem;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@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) {
    .search-section,
    .profile-section,
    .followers-section {
        background: rgba(7, 16, 20, 0.82);
        color: var(--text-primary);
    }

    .follower-card {
        background: rgba(255, 255, 255, 0.95);
        color: #081014;
    }
}

@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;
        color: black !important;
    }
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}